Skip to content

Commit c1becf8

Browse files
committed
fix: Spread operator object fallback
1 parent e48a37f commit c1becf8

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
@@ -29,7 +29,7 @@ export abstract class BaseInputBlockConverter<T extends z.ZodObject> implements
2929

3030
if (config.success !== true) {
3131
block.metadata = {
32-
...block.metadata,
32+
...(block.metadata ?? {}),
3333
[DEEPNOTE_VSCODE_RAW_CONTENT_KEY]: cell.value
3434
};
3535
return;

0 commit comments

Comments
 (0)