From b7e7b5494791bb3bfe7522aee77ecf77f4eb78c0 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 23 Oct 2023 11:13:48 +0200 Subject: [PATCH] Fix the event drop functionality for the table view (#1417) --- assets/js/utils/calendar_table_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/utils/calendar_table_view.js b/assets/js/utils/calendar_table_view.js index 65f7a1f6f6..2a26ab30d5 100755 --- a/assets/js/utils/calendar_table_view.js +++ b/assets/js/utils/calendar_table_view.js @@ -847,10 +847,10 @@ App.Utils.CalendarTableView = (function () { return; } - const filterServiceIds = $filterService.val(); + const filterServiceIds = $filterService.val().map(serviceId => Number(serviceId)); appointments = appointments.filter( - (appointment) => !filterServiceIds.length || filterServiceIds.indexOf(appointment.id_services) !== -1 + (appointment) => !filterServiceIds.length || filterServiceIds.includes(appointment.id_services) ); const calendarEvents = [];