fix: Estimate views.

This commit is contained in:
elforjani3
2020-12-17 15:56:31 +02:00
parent 7a847fc895
commit 19f346beb5
5 changed files with 48 additions and 86 deletions

View File

@@ -92,7 +92,8 @@ export const fetchEstimatesTable = ({ query = {} }) => {
payload: {
sales_estimates: response.data.sales_estimates,
pagination: response.data.pagination,
customViewId: response.data.customViewId || -1,
customViewId:
response.data?.filter_meta?.view?.custom_view_id || -1,
},
});
dispatch({
@@ -105,7 +106,8 @@ export const fetchEstimatesTable = ({ query = {} }) => {
type: t.ESTIMATES_PAGINATION_SET,
payload: {
pagination: response.data.pagination,
customViewId: response.data.customViewId || -1,
customViewId:
response.data?.filter_meta?.view?.custom_view_id || -1,
},
});
dispatch({