1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fix undefined variable sameTimeReservations

This commit is contained in:
Sylvain 2021-10-22 14:59:57 +02:00
parent 840c536c75
commit ab53042f21

View File

@ -456,7 +456,7 @@ Application.Directives.directive('cart', ['$rootScope', '$uibModal', 'dialogs',
* @param callback {function}
*/
const validateSameTimeReservations = function (slot, callback) {
$scope.settings.overlapping_categories.split(',').map(function (k) {
let sameTimeReservations = $scope.settings.overlapping_categories.split(',').map(function (k) {
return _.filter($scope.user[k], function (r) {
return slot.start.isSame(r.start_at) ||
(slot.end.isAfter(r.start_at) && slot.end.isBefore(r.end_at)) ||