We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1107999 commit 9cde69dCopy full SHA for 9cde69d
packages/ui/src/Toolbox/Toolbox.ts
@@ -55,7 +55,7 @@ export class ToolboxUI implements EditorjsPlugin {
55
this.#eventBus.addEventListener(`core:${CoreEventType.ToolLoaded}`, (event: ToolLoadedCoreEvent) => {
56
const { tool } = event.detail;
57
58
- if ('isBlock' in tool && tool.isBlock()) {
+ if (tool?.isBlock?.() === true) {
59
this.addTool(tool);
60
}
61
});
0 commit comments