This was working before as intended but broke somewhere with other changes. As part of this
[ ] Make sure that time dropdown in the Schedule Tab is pre-filled with the default values:
In case the appointment has not been scheduled yet, the time dropdown should be filled with something like either the first time slot of the business for the day or some word like - Select or something. What we had before was the first time slot of the business for the day.
In case the appointment has been scheduled before, the time dropdown should be filled with the last scheduled time.
This feature is not working now because in the Frontend code, we've changed the time format from 24 to 12 hours but the backend has the data in 24 hours format. So, the possible solution could be:
In Frontend code, before assigning the default time value, convert it first back to 24 hours format so that it matches with the DB values.
Or change the format of the time stored in DB to 12 hours format.
This was working before as intended but broke somewhere with other changes. As part of this
Select
or something. What we had before was the first time slot of the business for the day.This feature is not working now because in the Frontend code, we've changed the time format from 24 to 12 hours but the backend has the data in 24 hours format. So, the possible solution could be: