From cbdddc8d6d4398c3f3f7956cadb8c2900e63911e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0ime=C4=8Dek?= Date: Mon, 4 Apr 2022 19:00:38 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fixed=20incorrect=20error?= =?UTF-8?q?=20handling=20in=20services.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/create-ima-app/examples/hello/config/services.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/create-ima-app/examples/hello/config/services.js b/packages/create-ima-app/examples/hello/config/services.js index 03191569fa..3fc98d99a4 100755 --- a/packages/create-ima-app/examples/hello/config/services.js +++ b/packages/create-ima-app/examples/hello/config/services.js @@ -11,10 +11,8 @@ export default (ns, oc, config) => { $window.bindEventListener($window.getWindow(), 'error', event => { let error = event.error; - if (typeof $router?.handleError?.catch === 'function') { - $router.handleError({ error }).catch(fatalError => { - config.$IMA.fatalErrorHandler(fatalError); - }); - } + $router.handleError({ error }).catch(fatalError => { + config.$IMA.fatalErrorHandler(fatalError); + }); }); };