Skip to content

Commit

Permalink
chore: safe crash application on theme APIs failure (appsmithorg#13743)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvjn authored May 11, 2022
1 parent 876d1a1 commit 8084744
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/client/src/sagas/InitSagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ function* initiateEditorActions(applicationId: string) {
const failureActionEffects = [
ReduxActionErrorTypes.FETCH_JS_ACTIONS_ERROR,
ReduxActionErrorTypes.FETCH_ACTIONS_ERROR,
ReduxActionErrorTypes.FETCH_APP_THEMES_ERROR,
ReduxActionErrorTypes.FETCH_SELECTED_APP_THEME_ERROR,
];
const allActionCalls: boolean = yield failFastApiCalls(
initActionsCalls,
Expand Down Expand Up @@ -441,6 +443,8 @@ export function* initializeAppViewerSaga(
[
ReduxActionErrorTypes.FETCH_ACTIONS_VIEW_MODE_ERROR,
ReduxActionErrorTypes.FETCH_JS_ACTIONS_VIEW_MODE_ERROR,
ReduxActionErrorTypes.FETCH_APP_THEMES_ERROR,
ReduxActionErrorTypes.FETCH_SELECTED_APP_THEME_ERROR,
ReduxActionErrorTypes.FETCH_PUBLISHED_PAGE_ERROR,
],
);
Expand Down

0 comments on commit 8084744

Please sign in to comment.