balibabu commited on
Commit
99634df
·
1 Parent(s): 51db3f9

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

Browse files

### What problem does this PR solve?

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

### Type of change

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

web/src/pages/add-knowledge/components/knowledge-sidebar/index.tsx CHANGED
@@ -79,7 +79,7 @@ const KnowledgeSidebar = () => {
79
  ),
80
  ];
81
 
82
- if (!isEmpty(data.graph)) {
83
  list.push(
84
  getItem(
85
  KnowledgeRouteKey.KnowledgeGraph,
 
79
  ),
80
  ];
81
 
82
+ if (!isEmpty(data?.graph)) {
83
  list.push(
84
  getItem(
85
  KnowledgeRouteKey.KnowledgeGraph,