mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
Fix : ItemCategory & items
This commit is contained in:
@@ -50,6 +50,7 @@ const ItemsCategoryList = ({
|
|||||||
(category) => (
|
(category) => (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
icon={<Icon icon="pen-18" />}
|
||||||
text={formatMessage({ id: 'edit_category' })}
|
text={formatMessage({ id: 'edit_category' })}
|
||||||
onClick={handelEditCategory(category)}
|
onClick={handelEditCategory(category)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export const fetchCustomers = ({ query }) => {
|
|||||||
dispatch({
|
dispatch({
|
||||||
type: t.CUSTOMERS_PAGE_SET,
|
type: t.CUSTOMERS_PAGE_SET,
|
||||||
customers: response.data.customers,
|
customers: response.data.customers,
|
||||||
customViewId: response.data.customers.customViewId,
|
customViewId: response.data.customers?.viewMeta?.customViewId || -1,
|
||||||
paginationMeta: response.data.pagination,
|
paginationMeta: response.data.pagination,
|
||||||
});
|
});
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export const fetchItems = ({ query }) => {
|
|||||||
dispatch({
|
dispatch({
|
||||||
type: t.ITEMS_PAGE_SET,
|
type: t.ITEMS_PAGE_SET,
|
||||||
items: response.data.items,
|
items: response.data.items,
|
||||||
customViewId: response.data.customViewId,
|
customViewId: response.data?.filter_meta?.view?.custom_view_id,
|
||||||
paginationMeta: response.data.pagination,
|
paginationMeta: response.data.pagination,
|
||||||
});
|
});
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|||||||
Reference in New Issue
Block a user