5830150c77364761d6bd576c6773db5f85b823ef
Both portal flows were calling /api/book/availability with only the date
param, causing the API to return 400 'serviceId and date are required'.
The handler then .map()'d the {error:...} object, throwing TypeError and
wiping <div id="root">.
- Add fetchAvailability helper that validates r.ok and Array.isArray(data)
- RescheduleFlow: pass appt.serviceId
- BookingFlow: pass selectedServices[0]?.id
- Surface API error message ('Failed to load time slots' or the server's
error string) instead of crashing
- Add a cancelled guard to prevent stale responses from overwriting state
GRO-1804 / TC-WEB-5.12.5 through 5.12.11 unblocked.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
web
GroomBook web app (extracted from groombook/app monorepo)
Description
Languages
TypeScript
99.5%
CSS
0.3%