diff --git a/frontend/src/plugins/impl/anywidget/model.ts b/frontend/src/plugins/impl/anywidget/model.ts index b8800da625e..dd92efc0e38 100644 --- a/frontend/src/plugins/impl/anywidget/model.ts +++ b/frontend/src/plugins/impl/anywidget/model.ts @@ -397,11 +397,10 @@ export async function handleWidgetMessage( return; } - case "close": { + case "close": BINDING_MANAGER.destroy(modelId); modelManager.delete(modelId); // aborts the model's signal, clearing listeners return; - } case "update": { const { state, buffer_paths = [] } = msg;