From 777715aa4dd0d3bb80a39c2892cf11dc3828a747 Mon Sep 17 00:00:00 2001 From: Ayush Kumar Date: Sun, 25 Jan 2026 17:14:52 -0800 Subject: [PATCH] fix: handle null positions correctly --- quartz/components/scripts/graph.inline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/components/scripts/graph.inline.ts b/quartz/components/scripts/graph.inline.ts index a669b0547..1840276e4 100644 --- a/quartz/components/scripts/graph.inline.ts +++ b/quartz/components/scripts/graph.inline.ts @@ -528,7 +528,7 @@ async function renderGraph(graph: HTMLElement, fullSlug: FullSlug) { if (stopAnimation) return for (const n of nodeRenderData) { const { x, y } = n.simulationData - if (!x || !y) continue + if (x == null || y == null) continue n.gfx.position.set(x + width / 2, y + height / 2) if (n.label) { n.label.position.set(x + width / 2, y + height / 2)