forked from vikunja/frontend
chore: use Object.entries
This commit is contained in:
parent
21ddd25714
commit
e702524b94
|
@ -201,9 +201,9 @@ export default {
|
|||
return this.$store.getters['namespaces/getListAndNamespaceById'](this.listId, true)?.namespace
|
||||
},
|
||||
mappedRelatedTasks() {
|
||||
return Object.keys(this.relatedTasks).map(kind => ({
|
||||
title: this.$tc(`task.relation.kinds.${kind}`, this.relatedTasks[kind].length),
|
||||
tasks: this.mapRelatedTasks(this.relatedTasks[kind]),
|
||||
return Object.entries(this.relatedTasks).map(([kind, tasks]) => ({
|
||||
title: this.$tc(`task.relation.kinds.${kind}`, tasks.length),
|
||||
tasks: this.mapRelatedTasks(tasks),
|
||||
kind,
|
||||
}))
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue