fix(core-flows, dashboard): reservation recreation on fulfilment cancel + allocation button display (#12447)
**What** - fix recreation of reservations on fulfilment cancel - fix allocate items button display --- CLOSES CMRC-1018
This commit is contained in:
@@ -220,6 +220,14 @@ export const useCancelOrderFulfillment = (
|
||||
queryKey: ordersQueryKeys.preview(orderId),
|
||||
})
|
||||
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: reservationItemsQueryKeys.lists(),
|
||||
})
|
||||
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: inventoryItemsQueryKeys.details(),
|
||||
})
|
||||
|
||||
options?.onSuccess?.(data, variables, context)
|
||||
},
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user