mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
d9eb4b0d16
commit
da8c2fce6c
2 files changed
+8
-6
No files matched your search
@@ -627,9 +627,9 @@ export default {
|
||||
|
||||
// Helper: Get timeblocks for specific employee
|
||||
getEmployeeTimeblocks(employeeId) {
|
||||
if (!this.timeblocks) return [];
|
||||
if (!this.timeblocks || !employeeId) return [];
|
||||
return this.timeblocks.filter(
|
||||
(tb) => Number(tb.employee_id) === Number(employeeId),
|
||||
(tb) => tb.employee_id && Number(tb.employee_id) === Number(employeeId),
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user