mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
Fix :exchange Rate & estimate reducer
This commit is contained in:
@@ -5,6 +5,7 @@ import t from 'store/types';
|
|||||||
const initialState = {
|
const initialState = {
|
||||||
exchangeRates: {},
|
exchangeRates: {},
|
||||||
loading: false,
|
loading: false,
|
||||||
|
views: {},
|
||||||
tableQuery: {
|
tableQuery: {
|
||||||
page_size: 5,
|
page_size: 5,
|
||||||
page: 1,
|
page: 1,
|
||||||
@@ -26,17 +27,15 @@ const reducer = createReducer(initialState, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
[t.EXCHANGE_RATE_TABLE_LOADING]: (state, action) => {
|
[t.EXCHANGE_RATE_TABLE_LOADING]: (state, action) => {
|
||||||
|
|
||||||
const { loading } = action.payload;
|
const { loading } = action.payload;
|
||||||
state.loading = loading;
|
state.loading = loading;
|
||||||
},
|
},
|
||||||
|
|
||||||
[t.ESTIMATES_PAGE_SET]: (state, action) => {
|
[t.EXCHANGE_RATES_PAGE_SET]: (state, action) => {
|
||||||
const { customViewId, exchange_rates, pagination } = action.payload;
|
const { customViewId, exchange_rates, pagination } = action.payload;
|
||||||
|
|
||||||
const viewId = customViewId || -1;
|
const viewId = customViewId || -1;
|
||||||
const view = state.views[viewId] || {};
|
const view = state.views[viewId] || {};
|
||||||
|
|
||||||
state.views[viewId] = {
|
state.views[viewId] = {
|
||||||
...view,
|
...view,
|
||||||
pages: {
|
pages: {
|
||||||
|
|||||||
Reference in New Issue
Block a user