chore: change order

pull/21823/head
Joel 11 months ago
parent 6cb13925c2
commit 3f139133a0

@ -113,7 +113,7 @@ export 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…
Cancel
Save