fix(office365) fixed displaying office 365 tasks on teams overview screen

This commit is contained in:
Matej Glasnák committed 2025-07-07 08:14:30 +02:00
1 parent 7747e55f7e
commit c133824019
1 file changed
+6 -1
@@ -154,6 +154,11 @@ export default {
subtask.timeblocks.forEach(timeblock => {
const formattedDate = moment(timeblock.start).format('DD-MM-YYYY')
let type = 'subtask';
if (subtask.type == 'office365')
type = 'office365'
if (formattedDate == calendarDate) {
tasks.push({
id: subtask.id,
@@ -167,7 +172,7 @@ export default {
initials: employee?.name?.charAt(0)?.toUpperCase() + employee?.surname?.charAt(0)?.toUpperCase(),
split: split,
project_code: subtask.project_code,
type: 'subtask',
type,
subtask,
_timeblock_id: timeblock.id,
_timeblock_is_finished: timeblock.is_finished,