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