From f605cb0341d30b3aff69182b03ecaf86fd1ba11c Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sun, 26 May 2024 14:21:56 +0200 Subject: [PATCH] Fix input name retrieval for .ga --- server/gx-workflow-ls-native/src/nativeWorkflowDocument.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/gx-workflow-ls-native/src/nativeWorkflowDocument.ts b/server/gx-workflow-ls-native/src/nativeWorkflowDocument.ts index f42ce85..287b059 100644 --- a/server/gx-workflow-ls-native/src/nativeWorkflowDocument.ts +++ b/server/gx-workflow-ls-native/src/nativeWorkflowDocument.ts @@ -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) : "{}"