[Search] Fixed search refresh after action

This commit is contained in:
Matej Glasnák committed 2023-04-11 11:51:31 +02:00
1 parent 66e6b84bd9
commit 750f3dd59a
6 files changed
+54 -26

No files matched your search

@@ -43,14 +43,14 @@ export default {
_generateNonWorking() {
const nonWorkingHours = []
const date = new Date(this.filter.start)
let earliestStartHour = null
let earliestStartMinutes = null
this.calendarConfig.date = date
const { start: dayStart, end: dayEnd } = this._getDayStartEnd()
this.filter.team.employees.forEach((employee, index) => {
if (!earliestStartHour || employee.work_start < earliestStartHour)
earliestStartHour = employee.work_start
if (!earliestStartMinutes || (employee.work_start) < earliestStartMinutes)
earliestStartMinutes = employee.work_start
nonWorkingHours.push({
@@ -72,7 +72,7 @@ export default {
})
})
this.calendarConfig.scrollHour = earliestStartHour - 1
this.calendarConfig.scrollHour = (earliestStartMinutes) - 1
return nonWorkingHours
},