diff --git a/src/index.ts b/src/index.ts index 64a95fb..8cdef96 100644 --- a/src/index.ts +++ b/src/index.ts @@ -104,7 +104,7 @@ export class MinimapPlugin extends Scope { const view = this.area.nodeViews.get(node.id) - if (!view) throw new Error('view') + if (!view) return null return { width: node.width, @@ -112,7 +112,7 @@ export class MinimapPlugin extends Scope