Skip to content

Commit

Permalink
fix: handle absence of error message correctly (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr authored Aug 24, 2023
1 parent 7779714 commit cb40edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/static/components/state/state-error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StateError extends Component {
_getErrorPattern() {
const {errorPatterns, error} = this.props;

return errorPatterns.find(({regexp}) => error.message.match(regexp));
return errorPatterns.find(({regexp}) => error.message?.match(regexp));
}

_drawImage() {
Expand Down

0 comments on commit cb40edd

Please sign in to comment.