Skip to content

Conversation

@gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #6708

Proposed Changes

This PR fixes a bug that prevented redoing adding a comment to a block. By default comments are added as '', which is falsey, so when the comment text was set it fell back to null. I switched it to ?? to only fall back in the case of undefined.

@github-actions github-actions bot added the PR: fix Fixes a bug label Jan 13, 2026
@gonfunko gonfunko marked this pull request as ready for review January 13, 2026 20:30
@gonfunko gonfunko requested a review from a team as a code owner January 13, 2026 20:30
@gonfunko gonfunko requested a review from BenHenning January 13, 2026 20:30
Copy link
Collaborator

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gonfunko! One small suggestion to improve test clarity and another for adding a bit more test coverage, but otherwise this looks good.

@gonfunko gonfunko merged commit eb42882 into main Jan 13, 2026
7 checks passed
@gonfunko gonfunko deleted the comment-undo branch January 13, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undo and redo fail to re-add comment to block

3 participants