fix(canvas): keep guide renderer fixtures complete

This commit is contained in:
Danila Poyarkov 2026-08-19 18:10:36 +03:00
parent f9c0f56ec3
commit adaf6dacb9
2 changed files with 2 additions and 1 deletions

View file

@ -62,7 +62,7 @@ export function drawPageGuides(
}
}
for (const childId of page.childIds ?? []) {
for (const childId of page.childIds) {
const node = graph.getNode(childId)
if (!node) continue
if (node.id === page.id || node.guides.length === 0) continue

View file

@ -11,6 +11,7 @@ import { createMockCanvas, createMockRenderer, mockCalls } from './effects/helpe
function graphWithGuides(guides: SceneNode['guides']): SceneGraph {
const page = {
id: 'page',
childIds: [],
guides
} as SceneNode
return {