fix(canvas): keep guide renderer fixtures complete
This commit is contained in:
parent
f9c0f56ec3
commit
adaf6dacb9
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue