mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
UBERF-1166 Fix HR holidays display for employee (#4004)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
parent
f183a5c933
commit
b5f261318f
@ -270,7 +270,7 @@
|
||||
})
|
||||
staffs.forEach((staff) => {
|
||||
const filteredDepartments = departments.filter((department) => department.members.includes(staff._id))
|
||||
map.set(staff.employee as Ref<Staff>, filteredDepartments as Department[])
|
||||
map.set(staff.person as Ref<Staff>, filteredDepartments as Department[])
|
||||
})
|
||||
}
|
||||
return map
|
||||
|
Loading…
Reference in New Issue
Block a user