Skip to content

Commit 2cf5e22

Browse files
committed
fix: Fix bug that prevented redoing adding empty block comments
1 parent 9fc05df commit 2cf5e22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/events/events_block_change.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class BlockChange extends BlockBase {
193193
break;
194194
}
195195
case 'comment':
196-
block.setCommentText((value as string) || null);
196+
block.setCommentText((value as string) ?? null);
197197
break;
198198
case 'collapsed':
199199
block.setCollapsed(!!value);

0 commit comments

Comments
 (0)