fix: don't try to check undefined relations
This commit is contained in:
parent
85e85aa2bb
commit
a515b0c3a4
1 changed files with 2 additions and 1 deletions
|
@ -218,7 +218,8 @@ export default {
|
|||
await this.taskRelationService.delete(rel)
|
||||
|
||||
Object.entries(this.relatedTasks).some(([relationKind, t]) => {
|
||||
const found = this.relatedTasks[relationKind][t].id === this.relationToDelete.otherTaskId &&
|
||||
const found = typeof this.relatedTasks[relationKind][t] !== 'undefined' &&
|
||||
this.relatedTasks[relationKind][t].id === this.relationToDelete.otherTaskId &&
|
||||
relationKind === this.relationToDelete.relationKind
|
||||
if (!found) return false
|
||||
|
||||
|
|
Loading…
Reference in a new issue