Fix the event drop functionality for the table view (#1417)

This commit is contained in:
Alex Tselegidis 2023-10-23 11:13:48 +02:00
parent 216a07327f
commit b7e7b54947

View file

@ -847,10 +847,10 @@ App.Utils.CalendarTableView = (function () {
return; return;
} }
const filterServiceIds = $filterService.val(); const filterServiceIds = $filterService.val().map(serviceId => Number(serviceId));
appointments = appointments.filter( appointments = appointments.filter(
(appointment) => !filterServiceIds.length || filterServiceIds.indexOf(appointment.id_services) !== -1 (appointment) => !filterServiceIds.length || filterServiceIds.includes(appointment.id_services)
); );
const calendarEvents = []; const calendarEvents = [];