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)