From 15202eb8f24c43b4c81b2330fcf17bc499184666 Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 16 Aug 2025 09:34:18 -0700 Subject: [PATCH] handle minimap cleanup called before map set --- src/composables/useMinimap.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/composables/useMinimap.ts b/src/composables/useMinimap.ts index 2aa3c124fe..05a4c0e974 100644 --- a/src/composables/useMinimap.ts +++ b/src/composables/useMinimap.ts @@ -685,9 +685,10 @@ export function useMinimap() { const originalCallbacks = originalCallbacksMap.get(g.id) if (!originalCallbacks) { - throw new Error( + console.error( 'Attempted to cleanup event listeners for graph that was never set up' ) + return } g.onNodeAdded = originalCallbacks.onNodeAdded