Commit fab562f
committed
fix: Add element existence check to prevent Page Builder crashes
Encountered a scenario where missing HTML elements in Page Builder caused runtime errors due to direct calls to setAttribute.
Added an existence check before setting attributes to avoid breaking the editor.
This ensures continued functionality and improves stability by handling cases where elements are not found.
Logically, the core should include such checks to enhance resilience and user experience.1 parent 2b809d4 commit fab562f
2 files changed
Lines changed: 11 additions & 1 deletion
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
0 commit comments