mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
refactoring: inventory adjustments list.
refactoring: items categories list.
This commit is contained in:
@@ -18,6 +18,7 @@ export function useCreateItem(props) {
|
||||
return useMutation((values) => ApiService.post('items', values), {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries('ITEMS');
|
||||
queryClient.invalidateQueries('ITEMS_CATEGORIES');
|
||||
},
|
||||
...props,
|
||||
});
|
||||
@@ -33,6 +34,7 @@ export function useEditItem(props) {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries('ITEMS');
|
||||
queryClient.invalidateQueries('ITEM');
|
||||
queryClient.invalidateQueries('ITEMS_CATEGORIES');
|
||||
},
|
||||
...props,
|
||||
});
|
||||
@@ -48,6 +50,7 @@ export function useDeleteItem(props) {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries('ITEMS');
|
||||
queryClient.invalidateQueries('ITEM');
|
||||
queryClient.invalidateQueries('ITEMS_CATEGORIES');
|
||||
},
|
||||
...props,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user