From bc7523048040a9dbfd5d8cee1b71ed18cc089e54 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 2 Jul 2025 16:20:38 +0800 Subject: [PATCH] fix: var pos to start pos --- web/app/components/workflow-app/hooks/use-inspect-vars-crud.ts | 2 ++ 1 file changed, 2 insertions(+) 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 938b907368..ce052b7ed4 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 @@ -122,6 +122,8 @@ export const useInspectVarsCrud = () => { } else { draft[index].vars = payload + // put the node to the topAdd commentMore actions + draft.unshift(draft.splice(index, 1)[0]) } } })