Skip to content

Commit

Permalink
Fix the event drop functionality for the table view (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Oct 23, 2023
1 parent 216a073 commit b7e7b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/utils/calendar_table_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit b7e7b54

Please sign in to comment.