diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 25f72ed..f625234 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -4951,11 +4951,16 @@ reducers[CLAIM_SEARCH_COMPLETED] = (state, action) => { }; reducers[CLAIM_SEARCH_FAILED] = (state, action) => { + const { query } = action.data; + const claimSearchByQuery = Object.assign({}, state.claimSearchByQuery); const fetchingClaimSearchByQuery = Object.assign({}, state.fetchingClaimSearchByQuery); - delete fetchingClaimSearchByQuery[action.data.query]; + + delete fetchingClaimSearchByQuery[query]; + claimSearchByQuery[query] = null; return Object.assign({}, state, { - fetchingClaimSearchByQuery + fetchingClaimSearchByQuery, + claimSearchByQuery }); }; diff --git a/src/redux/reducers/claims.js b/src/redux/reducers/claims.js index 7ca9745..2dd835b 100644 --- a/src/redux/reducers/claims.js +++ b/src/redux/reducers/claims.js @@ -457,11 +457,16 @@ reducers[ACTIONS.CLAIM_SEARCH_COMPLETED] = (state: State, action: any): State => }; reducers[ACTIONS.CLAIM_SEARCH_FAILED] = (state: State, action: any): State => { + const { query } = action.data; + const claimSearchByQuery = Object.assign({}, state.claimSearchByQuery); const fetchingClaimSearchByQuery = Object.assign({}, state.fetchingClaimSearchByQuery); - delete fetchingClaimSearchByQuery[action.data.query]; + + delete fetchingClaimSearchByQuery[query]; + claimSearchByQuery[query] = null; return Object.assign({}, state, { fetchingClaimSearchByQuery, + claimSearchByQuery, }); };