Skip to content

Commit

Permalink
Fix input name retrieval for .ga
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed May 26, 2024
1 parent a78abad commit f605cb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/gx-workflow-ls-native/src/nativeWorkflowDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export class NativeWorkflowDocument extends WorkflowDocument {
}
}
}
if (!labelValue) {
const nameNode = step.properties.find((property) => property.keyNode.value === "name");
labelValue = nameNode?.valueNode?.value;
}
const toolStateNode = step.properties.find((property) => property.keyNode.value === "tool_state");
const toolStateValue = JSON.parse(
toolStateNode?.valueNode?.value ? String(toolStateNode?.valueNode?.value) : "{}"
Expand Down

0 comments on commit f605cb0

Please sign in to comment.