fix(medusa-react): Add missing query keys to inventory hooks (#4467)
* Add missing adminInventoryItemsKeys.lists() to inventory hooks * Create gentle-points-cover.md
This commit is contained in:
1 parent
e3a8565213
commit
3e6cee2846
2 files changed
+7
-2
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"medusa-react": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa-react): add missing adminInventoryItemsKeys.lists() to inventory hooks
|
||||||
@@ -59,7 +59,7 @@ export const useAdminUpdateInventoryItem = (
|
|||||||
client.admin.inventoryItems.update(inventoryItemId, payload),
|
client.admin.inventoryItems.update(inventoryItemId, payload),
|
||||||
buildOptions(
|
buildOptions(
|
||||||
queryClient,
|
queryClient,
|
||||||
[adminInventoryItemsKeys.detail(inventoryItemId)],
|
[adminInventoryItemsKeys.lists(), adminInventoryItemsKeys.detail(inventoryItemId)],
|
||||||
options
|
options
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -81,7 +81,7 @@ export const useAdminDeleteInventoryItem = (
|
|||||||
() => client.admin.inventoryItems.delete(inventoryItemId),
|
() => client.admin.inventoryItems.delete(inventoryItemId),
|
||||||
buildOptions(
|
buildOptions(
|
||||||
queryClient,
|
queryClient,
|
||||||
[adminInventoryItemsKeys.detail(inventoryItemId)],
|
[adminInventoryItemsKeys.lists(), adminInventoryItemsKeys.detail(inventoryItemId)],
|
||||||
options
|
options
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user