From b12911036b4b593c2c26d5c78746bef3376884a6 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 2 Jul 2025 11:03:39 +0800 Subject: [PATCH] chore: new variable add to top position instead of bottom --- web/app/components/workflow/hooks/use-inspect-vars-crud.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/hooks/use-inspect-vars-crud.ts b/web/app/components/workflow/hooks/use-inspect-vars-crud.ts index e81d3b13a4..e4daaf8220 100644 --- a/web/app/components/workflow/hooks/use-inspect-vars-crud.ts +++ b/web/app/components/workflow/hooks/use-inspect-vars-crud.ts @@ -117,7 +117,7 @@ const useInspectVarsCrud = () => { if (nodeInfo) { const index = draft.findIndex(node => node.nodeId === nodeId) if (index === -1) { - draft.push({ + draft.unshift({ nodeId, nodeType: nodeInfo.data.type, title: nodeInfo.data.title,