From 5525712098935603f700e67f25f3ff149dd50bf8 Mon Sep 17 00:00:00 2001 From: Ni55aN Date: Sat, 30 Sep 2023 12:47:19 +0300 Subject: [PATCH] fix: resolve exception triggered by asynchronous node removal --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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