This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Commit ff51c1d
fix: avoid TypeError if resp is undefined (#1273)
When `resp` is undefined, this error handling code will itself throw "TypeError: Cannot read properties of undefined (reading 'insertErrors')"
Instead of throwing, we can use optional chaining to allow the error message to be handled as expected.
Co-authored-by: Lo Ferris <[email protected]>1 parent 41e52c5 commit ff51c1d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
0 commit comments