瀏覽代碼

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

tags/1.5.1
Joel 4 月之前
父節點
當前提交
f53b177e1f
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      web/app/components/workflow/hooks/use-inspect-vars-crud.ts

+ 1
- 1
web/app/components/workflow/hooks/use-inspect-vars-crud.ts 查看文件

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…
取消
儲存