diff --git a/lib/static/components/state/state-error.jsx b/lib/static/components/state/state-error.jsx index 2eaad53d1..a04a977cb 100644 --- a/lib/static/components/state/state-error.jsx +++ b/lib/static/components/state/state-error.jsx @@ -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() {