diff --git a/web/app/components/workflow-app/hooks/use-inspect-vars-crud.ts b/web/app/components/workflow-app/hooks/use-inspect-vars-crud.ts index e80a7783f9..3a19633399 100644 --- a/web/app/components/workflow-app/hooks/use-inspect-vars-crud.ts +++ b/web/app/components/workflow-app/hooks/use-inspect-vars-crud.ts @@ -113,7 +113,7 @@ export 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,