Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information