mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Fix the event drop functionality for the table view (#1417)
This commit is contained in:
parent
216a07327f
commit
b7e7b54947
1 changed files with 2 additions and 2 deletions
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in a new issue