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:
Frane Polić
2025-05-12 17:09:23 +00:00
committed by GitHub
parent 728c350c0d
commit 39e5eadefc
5 changed files with 258 additions and 10 deletions
@@ -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,