From fbb17fa3cdc1946cc120fb17cf2930a695c83468 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Fri, 6 Nov 2020 01:12:04 +0200 Subject: [PATCH] Fix :exchange Rate & estimate reducer --- client/src/store/ExchangeRate/exchange.reducer.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/store/ExchangeRate/exchange.reducer.js b/client/src/store/ExchangeRate/exchange.reducer.js index 112299fd9..94ef93516 100644 --- a/client/src/store/ExchangeRate/exchange.reducer.js +++ b/client/src/store/ExchangeRate/exchange.reducer.js @@ -5,6 +5,7 @@ import t from 'store/types'; const initialState = { exchangeRates: {}, loading: false, + views: {}, tableQuery: { page_size: 5, page: 1, @@ -26,17 +27,15 @@ const reducer = createReducer(initialState, { }, [t.EXCHANGE_RATE_TABLE_LOADING]: (state, action) => { - const { loading } = action.payload; state.loading = loading; }, - [t.ESTIMATES_PAGE_SET]: (state, action) => { + [t.EXCHANGE_RATES_PAGE_SET]: (state, action) => { const { customViewId, exchange_rates, pagination } = action.payload; const viewId = customViewId || -1; const view = state.views[viewId] || {}; - state.views[viewId] = { ...view, pages: {