We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eccc8f commit f822ea2Copy full SHA for f822ea2
src/store/middleware/errorMiddleware.js
@@ -11,11 +11,15 @@ export const errorMiddleware =
11
const { getState } = store
12
const state = getState()
13
const setupCompleted = state.app?.setupCompleted
14
+ let SamWizardError = false
15
+ if (action?.meta?.arg?.originalArgs?.path === '/api/ExecSamSetup') {
16
+ SamWizardError = true
17
+ }
18
if (
19
isRejectedWithValue(action) &&
20
!action.error?.hideToastError &&
21
action.payload.message !== 'canceled' &&
- setupCompleted
22
+ (setupCompleted || SamWizardError)
23
) {
24
if (action.payload.data === 'Backend call failure') {
25
action.payload.data =
0 commit comments