瀏覽代碼

Fix: graphknowledge Tree structure not found for treeKey: combo (#7819) (#8862)

### What problem does this PR solve?

Fixed graphknowledge Tree structure not found for treeKey.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.20.0
wwwlll 3 月之前
父節點
當前提交
9bd2127ba1
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      web/src/pages/add-knowledge/components/knowledge-graph/util.ts

+ 3
- 1
web/src/pages/add-knowledge/components/knowledge-graph/util.ts 查看文件

const nextNodes = nodes.map((x) => { const nextNodes = nodes.map((x) => {
return { return {
...x, ...x,
combo: combos.find((y) => y.data.label === findCombo(x?.communities))?.id,
combo:
combos.find((y) => y.data.label === findCombo(x?.communities))?.id ??
null,
}; };
}); });



Loading…
取消
儲存