Skip to content

Commit 3c421dd

Browse files
committed
refactor canConvert
1 parent b7f2dee commit 3c421dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/notebooks/deepnote/converters/inputConverters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export abstract class BaseInputBlockConverter<T extends z.ZodObject> implements
5353
}
5454

5555
canConvert(blockType: string): boolean {
56-
return blockType.toLowerCase() === this.getSupportedType();
56+
return this.getSupportedTypes().includes(blockType.toLowerCase());
5757
}
5858

5959
convertToCell(block: DeepnoteBlock): NotebookCellData {

0 commit comments

Comments
 (0)