From a10b190e4b3fca19414c8304f5f29dae80e3e9d6 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 2 Jul 2025 15:32:11 +0800 Subject: [PATCH] chore: put runed var to the top --- web/app/components/workflow/hooks/use-inspect-vars-crud.ts | 2 ++ 1 file changed, 2 insertions(+) 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 e4daaf8220..7dca11d3ed 100644 --- a/web/app/components/workflow/hooks/use-inspect-vars-crud.ts +++ b/web/app/components/workflow/hooks/use-inspect-vars-crud.ts @@ -127,6 +127,8 @@ const useInspectVarsCrud = () => { } else { draft[index].vars = payload + // put the node to the top + draft.unshift(draft.splice(index, 1)[0]) } } })