Skip to content

Conversation

@EvHaus
Copy link
Contributor

@EvHaus EvHaus commented Apr 5, 2025

This change introduced a regression where a null or undefined value for the bookmark props would be rendered like this

Screenshot 2025-04-04 at 10 34 49 PM

instead of being skipped. This PR fixes that and introduced a test to catch that.

const result = resolveBookmarks(root);

expect(result).toEqual(root);
expect(result).toEqual({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated to the fix, but updated this test to test against a new variable instance. The previous test would always pass because the original root variable would get mutated.

@diegomura diegomura changed the title fix: undefined and null bookmark prop values are rendered instead of being skipped fix: falsy bookmark prop values rendering Sep 23, 2025
@diegomura diegomura merged commit 5a898df into diegomura:master Sep 23, 2025
@EvHaus EvHaus deleted the fix-undefined-bookmarks branch September 30, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants