mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
WIP Feature : categoriesSelectList & Fix: Items
This commit is contained in:
@@ -40,11 +40,8 @@ const ItemFormContainer = ({
|
||||
const fetchItemDetail = useQuery(
|
||||
['item', id],
|
||||
(key, _id) => requestFetchItem(_id),
|
||||
{
|
||||
enabled: !!id,
|
||||
},
|
||||
{ enabled: id && id },
|
||||
);
|
||||
|
||||
const handleFormSubmit = useCallback(
|
||||
(payload) => {
|
||||
payload.redirect && history.push('/items');
|
||||
|
||||
Reference in New Issue
Block a user