From 9bd2127ba18a65b7b771db8731f5ab3d07792caa Mon Sep 17 00:00:00 2001 From: wwwlll Date: Wed, 16 Jul 2025 11:43:06 +0800 Subject: [PATCH] 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) --- .../pages/add-knowledge/components/knowledge-graph/util.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/pages/add-knowledge/components/knowledge-graph/util.ts b/web/src/pages/add-knowledge/components/knowledge-graph/util.ts index e0be797f2..8f58fcebc 100644 --- a/web/src/pages/add-knowledge/components/knowledge-graph/util.ts +++ b/web/src/pages/add-knowledge/components/knowledge-graph/util.ts @@ -86,7 +86,9 @@ export const buildNodesAndCombos = (nodes: any[]) => { const nextNodes = nodes.map((x) => { return { ...x, - combo: combos.find((y) => y.data.label === findCombo(x?.communities))?.id, + combo: + combos.find((y) => y.data.label === findCombo(x?.communities))?.id ?? + null, }; });