mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: danger intent fields.
This commit is contained in:
@@ -142,6 +142,16 @@ export function useItems(query, props) {
|
||||
);
|
||||
}
|
||||
|
||||
export function useRefreshItems() {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
return {
|
||||
refresh: () => {
|
||||
queryClient.invalidateQueries(t.ITEMS);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve details of the given item.
|
||||
* @param {number} id - Item id.
|
||||
|
||||
Reference in New Issue
Block a user