made parent empty lines hidden
This commit is contained in:
parent
2aa80e094a
commit
cef66f2bd4
@ -241,18 +241,20 @@ class Table {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.addProject(
|
if (parentDurations.reduce((a, b) => a + b, 0) !== 0) {
|
||||||
parent.id,
|
this.addProject(
|
||||||
parent.name,
|
parent.id,
|
||||||
parent.project_num,
|
parent.name,
|
||||||
parentDurations.map(v => v === 0 ? "" : v),
|
parent.project_num,
|
||||||
true,
|
parentDurations.map(v => v === 0 ? "" : v),
|
||||||
parent.is_productive
|
true,
|
||||||
)
|
parent.is_productive
|
||||||
|
)
|
||||||
|
|
||||||
projects.filter(p => p.total !== 0).forEach(project => {
|
projects.filter(p => p.total !== 0).forEach(project => {
|
||||||
this.addProject(project.id, project.name, "", project.durations)
|
this.addProject(project.id, project.name, "", project.durations)
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.updateTotals()
|
this.updateTotals()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user