fix(dashboard): categories add products (#9380)
**What** - fix listing/adding products in the add category products flow --- FIXES CC-523
This commit is contained in:
@@ -134,7 +134,7 @@ export const useUpdateProductCategoryProducts = (
|
||||
onSuccess: (data, variables, context) => {
|
||||
queryClient.invalidateQueries({ queryKey: categoriesQueryKeys.lists() })
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: categoriesQueryKeys.detail(id),
|
||||
queryKey: categoriesQueryKeys.details(),
|
||||
})
|
||||
/**
|
||||
* Invalidate products list query to ensure that the products collections are updated.
|
||||
|
||||
Reference in New Issue
Block a user