UBERF-1166 Fix HR holidays display for employee (#4004)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2023-11-17 11:25:52 +07:00 committed by GitHub
parent f183a5c933
commit b5f261318f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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