WIP Feature : categoriesSelectList & Fix: Items

This commit is contained in:
elforjani3
2020-10-21 19:22:04 +02:00
parent ab4ec24619
commit 0e342ca02e
6 changed files with 80 additions and 56 deletions

View File

@@ -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');