Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Guard against a block styles crash due to null block values (#56903
) * fix: Guard against a block styles crash due to null block values In certain scenarios, e.g., when the editor hangs due to poor performance, the `getBlock` value unexpectedly returns `null`. To guard against a crash in this scenario, we now conditionally access attributes on the block. A ideal resolution would be improving editor performance to avoid the scenario where a race condition causes a crash, but the fact remains that `getBlock` _can_ return `null` values and that we should not presume that it will not. * docs: Add change log entry
- Loading branch information
cfa3fd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in cfa3fd6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7144278702
📝 Reported issues:
/test/e2e/specs/site-editor/font-library.spec.js