chore: new inspected variable add to top position instead of bottom (#21793)

pull/21803/head
Joel 7 months ago committed by GitHub
parent 58dfe2ca03
commit f53b177e1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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