Commit 5a077ae
Fix TS18047: coerce textContent null to empty string
textContent() returns string | null; .catch(() => "") only handles
rejected promises, not resolved null. Adding ?? "" ensures newText
is always a string, fixing the TypeScript type check in CI.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4f96e31 commit 5a077ae
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
0 commit comments