mirror of
https://github.com/langgenius/dify.git
synced 2025-09-28 02:25:21 +00:00
chore: new inspected variable add to top position instead of bottom (#21793)
This commit is contained in:
parent
58dfe2ca03
commit
f53b177e1f
@ -117,7 +117,7 @@ const useInspectVarsCrud = () => {
|
|||||||
if (nodeInfo) {
|
if (nodeInfo) {
|
||||||
const index = draft.findIndex(node => node.nodeId === nodeId)
|
const index = draft.findIndex(node => node.nodeId === nodeId)
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
draft.push({
|
draft.unshift({
|
||||||
nodeId,
|
nodeId,
|
||||||
nodeType: nodeInfo.data.type,
|
nodeType: nodeInfo.data.type,
|
||||||
title: nodeInfo.data.title,
|
title: nodeInfo.data.title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user