fix(dashboard): bust variant inventory cache on inventory update (#11690)
This commit is contained in:
5
.changeset/quiet-numbers-bow.md
Normal file
5
.changeset/quiet-numbers-bow.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/dashboard": patch
|
||||
---
|
||||
|
||||
fix(dashboard): bust variant inventory cache on inventory update
|
||||
@@ -205,6 +205,9 @@ export const useUpdateInventoryLevel = (
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: inventoryItemLevelsQueryKeys.detail(inventoryItemId),
|
||||
})
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: variantsQueryKeys.details(),
|
||||
})
|
||||
options?.onSuccess?.(data, variables, context)
|
||||
},
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user