fix(dashboard): bust variant inventory cache on inventory update (#11690)

This commit is contained in:
Riqwan Thamir authored and GitHub committed 2025-03-03 12:53:34 +01:00
1 parent 7465604ae5
commit 954136f13a
2 files changed
+8

No files matched your search

@@ -205,6 +205,9 @@ export const useUpdateInventoryLevel = (
queryClient.invalidateQueries({
queryKey: inventoryItemLevelsQueryKeys.detail(inventoryItemId),
})
queryClient.invalidateQueries({
queryKey: variantsQueryKeys.details(),
})
options?.onSuccess?.(data, variables, context)
},
...options,