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

### 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)
This commit is contained in:
balibabu 2025-01-23 11:32:49 +08:00 committed by GitHub
parent c5c0dd2da0
commit 15f9406e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ const KnowledgeSidebar = () => {
),
];
if (!isEmpty(data.graph)) {
if (!isEmpty(data?.graph)) {
list.push(
getItem(
KnowledgeRouteKey.KnowledgeGraph,