Skip to content

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

Fix: Capture the problem that the knowledge graph interface returns null and causes page errors #4543 (#4598)

balibabu15f9406e7b4a
diff --git a/web/src/pages/add-knowledge/components/knowledge-sidebar/index.tsx b/web/src/pages/add-knowledge/components/knowledge-sidebar/index.tsx
index 7099cdc886..83bc3c9f09 100644
--- a/web/src/pages/add-knowledge/components/knowledge-sidebar/index.tsx
+++ b/web/src/pages/add-knowledge/components/knowledge-sidebar/index.tsx
@@ -79,7 +79,7 @@ const KnowledgeSidebar = () => {
),
];
- if (!isEmpty(data.graph)) {
+ if (!isEmpty(data?.graph)) {
list.push(
getItem(
KnowledgeRouteKey.KnowledgeGraph,