Skip to content

Commit 9cde69d

Browse files
committed
lint
1 parent 1107999 commit 9cde69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/Toolbox/Toolbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class ToolboxUI implements EditorjsPlugin {
5555
this.#eventBus.addEventListener(`core:${CoreEventType.ToolLoaded}`, (event: ToolLoadedCoreEvent) => {
5656
const { tool } = event.detail;
5757

58-
if ('isBlock' in tool && tool.isBlock()) {
58+
if (tool?.isBlock?.() === true) {
5959
this.addTool(tool);
6060
}
6161
});

0 commit comments

Comments
 (0)