Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

wwwlll9bd2127ba18a
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 e0be797f2e..8f58fcebc2 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,
};
});