diff --git a/plugins/hr-resources/src/components/ScheduleView.svelte b/plugins/hr-resources/src/components/ScheduleView.svelte index e368ba3834..b908867b43 100644 --- a/plugins/hr-resources/src/components/ScheduleView.svelte +++ b/plugins/hr-resources/src/components/ScheduleView.svelte @@ -178,15 +178,14 @@ function updateStaff ( staff: Staff[], departments: Ref[], - employeeRequests: Map, Request[]>, descendants: Map, Department[]>, departmentById: Map, Department> ) { - departmentStaff = staff.filter((p) => departments.includes(p.department) || employeeRequests.has(p._id)) + departmentStaff = staff.filter((p) => departments.includes(p.department)) updateEditableList(departmentById, departmentStaff, descendants) } - $: updateStaff(staff, departments, employeeRequests, descendants, departmentById) + $: updateStaff(staff, departments, descendants, departmentById) const reportQuery = createQuery() @@ -290,15 +289,12 @@