Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: put new run var to the top (#21816)

Joel0c39490bb140
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 e4daaf82202..7dca11d3ed4 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])
}
}
})