We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37e88c8 commit b6c3eefCopy full SHA for b6c3eef
packages/app/src/pages/employee/BookingsPage.vue
@@ -215,7 +215,10 @@ const cancelBooking: InstanceType<
215
>['$props']['onCancel'] = async ({ data: { booking, reason }, done }) => {
216
if (booking.id) {
217
try {
218
- await cancelBookingMutation(booking.id)
+ await cancelBookingMutation({
219
+ id: booking.id,
220
+ reason
221
+ })
222
done(true)
223
await execute()
224
} catch (e) {
0 commit comments