adamspd / django-appointment

A Django app for managing appointment scheduling with ease and flexibility.
Apache License 2.0
95 stars 34 forks source link

Don't send unnecessary request when staff ID is none #86

Closed adamspd closed 6 months ago

adamspd commented 6 months ago

Describe the bug On the appointment page, when no staff user is selected, if I click on a day on the calendar, a request is still sent to get staff member available slots

GET | http://127.0.0.1:8000/en/ajax/available_slots/?selected_date=2024-02-09&staff_id=none

Expected behaviour if staff_id == none, no Ajax request sent.

Screenshots

image