Skip to content

Commit

Permalink
fix: πŸ› Fixed incorrect error handling in services.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Apr 4, 2022
1 parent bf8f7f6 commit cbdddc8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/create-ima-app/examples/hello/config/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
};

0 comments on commit cbdddc8

Please sign in to comment.