Skip to content

Commit 55957cd

Browse files
committed
chore: minor fix
1 parent cda8eb6 commit 55957cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/blocks/defaultBlockTypeGuards.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ export function editorHasBlockWithType<
4343
any,
4444
any
4545
> {
46-
if (!editorHasBlockWithType(editor, blockType)) {
46+
if (!(blockType in editor.schema.blockSpecs)) {
4747
return false;
4848
}
49+
4950
if (!props) {
5051
return true;
5152
}

0 commit comments

Comments
 (0)