fix: related task within the same namespace

This commit is contained in:
kolaente 2022-01-30 23:12:42 +01:00
parent 92864fa5c1
commit 20a9ad2c9e
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -274,10 +274,11 @@ export default {
return tasks return tasks
.map(task => { .map(task => {
// by doing this here once we can save a lot of duplicate calls in the template // by doing this here once we can save a lot of duplicate calls in the template
const listAndNamespace = this.$store.getters['namespaces/getListAndNamespaceById'](task.listId, true)
const { const {
list, list,
namespace, namespace,
} = this.$store.getters['namespaces/getListAndNamespaceById'](task.listId, true) } = listAndNamespace === null ? {list: null, namespace: null} : listAndNamespace
return { return {
...task, ...task,