From f53b177e1ff13ec0779c1ebf36fc7a42d762f72f Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 2 Jul 2025 11:07:43 +0800 Subject: [PATCH] chore: new inspected variable add to top position instead of bottom (#21793) --- 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 e81d3b13a..e4daaf822 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,