Thursday, April 11, 2024
1 change · saas-17.1
Resolved issues and error corrections
Point of Sale now loads normally when a restaurant appointment falls within a narrow time window around the current time. This avoids an error that could block staff from accessing the floor screen in that situation.
Original PR description
To reproduce: 1. Install pos_restaurant_appointment 2. Create an appointment so that the beginning is before "now" and the end is < 1 hour after "now" Before this commit: It the filter remove values such that nothing is left, the getMin function will crash with a JS traceback: `Caused by: TypeError: Reduce of empty array with no initial value` After this commit: The PoS load as normal opw-3848704