Skip to content

Commit

Permalink
feat: log error when error view is shown (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonsheah committed Oct 24, 2023
1 parent c48d97e commit c30d53e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export const viewReducer: Reducer<ViewState, ViewAction> = (
case ViewActions.UPDATE_VIEW:
// eslint-disable-next-line no-case-declarations
const { view, currentViewData } = action.payload;
if (view.type === SharedViews.ERROR_VIEW) {
// eslint-disable-next-line no-console
console.error((view as ErrorView).error);
}
// eslint-disable-next-line no-case-declarations
const { history } = state;
if (
Expand Down

0 comments on commit c30d53e

Please sign in to comment.