From cb40edd52785eac021dbc46c61dc754e21c754dc Mon Sep 17 00:00:00 2001 From: shadowusr <58862284+shadowusr@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:36:54 +0300 Subject: [PATCH] fix: handle absence of error message correctly (#490) --- 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() {