Commit add086b
Guard against undefined value in CodeMirror component (#8708)
When value is undefined/null, CodeMirror crashes trying to read
.length on it during EditorState.create. Return an empty editor
div instead.
Closes #8692
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent f5aee27 commit add086b
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
0 commit comments