From 69c660b3b70b7aa0d5198d8e7bd620ce7922912b Mon Sep 17 00:00:00 2001 From: ComfyUI Wiki Date: Mon, 18 Aug 2025 00:46:59 +0800 Subject: [PATCH] handle minimap cleanup called before map set (#5038) Co-authored-by: bymyself --- 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 2aa3c124f..05a4c0e97 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