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

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

View File

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