fix(react): Fix input type on useAdminUpdateReservation mutation hook (#3732)
The hook was incorrectly expecting the input type for the creation mutation. Resolves CORE-1316
This commit is contained in:
5
.changeset/strong-points-hammer.md
Normal file
5
.changeset/strong-points-hammer.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"medusa-react": patch
|
||||
---
|
||||
|
||||
fix(react): Fix input type on useAdminUpdateReservation mutation hook
|
||||
@@ -31,10 +31,7 @@ export const useAdminCreateReservation = (
|
||||
client.admin.reservations.create(payload),
|
||||
buildOptions(
|
||||
queryClient,
|
||||
[
|
||||
adminReservationsKeys.lists(),
|
||||
adminVariantKeys.all,
|
||||
],
|
||||
[adminReservationsKeys.lists(), adminVariantKeys.all],
|
||||
options
|
||||
)
|
||||
)
|
||||
@@ -45,7 +42,7 @@ export const useAdminUpdateReservation = (
|
||||
options?: UseMutationOptions<
|
||||
Response<AdminReservationsRes>,
|
||||
Error,
|
||||
AdminPostReservationsReq
|
||||
AdminPostReservationsReservationReq
|
||||
>
|
||||
) => {
|
||||
const { client } = useMedusa()
|
||||
|
||||
Reference in New Issue
Block a user