An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Guard graph hover before data loads
Daniel08acc0e259ab
diff --git a/app/src/layout/dock/graph/GraphEngine.ts b/app/src/layout/dock/graph/GraphEngine.tsindex 5c4da1548e..ea6eff1e64 100644--- a/app/src/layout/dock/graph/GraphEngine.ts+++ b/app/src/layout/dock/graph/GraphEngine.ts@@ -763,6 +763,11 @@ export class GraphEngine {}private updateHover(pointer: IPointerPosition) {+ if (!this.data) {+ this.setHovered(-1);+ this.hideTooltip();+ return;+ }const hovered = this.hitTest(pointer.x, pointer.y);this.setHovered(hovered);const node = hovered < 0 ? undefined : this.data.nodes[hovered];