diff --git a/blocksuite/framework/block-std/src/view/element/lit-host.ts b/blocksuite/framework/block-std/src/view/element/lit-host.ts index d94fc575d8..0f0cf3e310 100644 --- a/blocksuite/framework/block-std/src/view/element/lit-host.ts +++ b/blocksuite/framework/block-std/src/view/element/lit-host.ts @@ -58,7 +58,7 @@ export class EditorHost extends SignalWatcher( } const widgetViews = this.std.provider.getAll(WidgetViewIdentifier); - const widgets = widgetViews.entries().reduce( + const widgets = Array.from(widgetViews.entries()).reduce( (mapping, [key, tag]) => { const [widgetFlavour, id] = key.split('|'); if (widgetFlavour === flavour) {