chore: new variable add to top position instead of bottom

pull/21793/head
Joel 11 months ago
parent c4b960cc1a
commit b12911036b

@ -117,7 +117,7 @@ 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,

Loading…
Cancel
Save