From dff501c25d768946871caa24512078afc3132332 Mon Sep 17 00:00:00 2001 From: shadowusr Date: Thu, 24 Aug 2023 14:40:52 +0300 Subject: [PATCH] fix: handle absence of error message correctly --- lib/static/components/state/state-error.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {