Skip to content

Avoid fatals when invalid row selected #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2025
Merged

Avoid fatals when invalid row selected #612

merged 2 commits into from
Jul 22, 2025

Conversation

pkevan
Copy link
Contributor

@pkevan pkevan commented Jul 11, 2025

Fixes #611.

@pkevan pkevan requested a review from a team as a code owner July 11, 2025 09:19
@pkevan pkevan requested review from ingeniumed and removed request for a team July 11, 2025 09:19
Copy link
Contributor

Test this PR in WordPress Playground.

@pkevan pkevan added the bug Something isn't working label Jul 11, 2025
Copy link
Contributor

@shekharnwagh shekharnwagh left a comment

Choose a reason for hiding this comment

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

It fixes the issue as it no longer crashes the editor. Though if you set one of the rowId as 0, it updates in editor as empty, but on frontend it still shows the previously selected row data. Maybe that's an acceptable tradeoff to fall back to last known non-empty value, as that's what we do with the remote data stored in post content.

@pkevan pkevan merged commit ad21045 into trunk Jul 22, 2025
13 checks passed
@pkevan pkevan deleted the fix/issue-611 branch July 22, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google sheets integration can break editor via user input
2 participants