mirror of
https://github.com/poanse/obsidian-taskmap.git
synced 2026-07-22 06:05:58 +00:00
fixed key and lock showed when another task is deleted
This commit is contained in:
parent
cd24c19fab
commit
2a661389f0
1 changed files with 6 additions and 2 deletions
|
|
@ -166,7 +166,9 @@ export class VersionedData {
|
|||
}
|
||||
return this.data.blockerPairs
|
||||
.filter((p) => p.blocked === taskId)
|
||||
.some((p) => this.getTask(p.blocker).status !== StatusCode.DONE);
|
||||
.map((p) => this.getTask(p.blocker))
|
||||
.filter((blockerTask) => !blockerTask.deleted)
|
||||
.some((blockerTask) => blockerTask.status !== StatusCode.DONE);
|
||||
};
|
||||
|
||||
public isTaskBlocking = (taskId: TaskId) => {
|
||||
|
|
@ -175,7 +177,9 @@ export class VersionedData {
|
|||
}
|
||||
return this.data.blockerPairs
|
||||
.filter((p) => p.blocker === taskId)
|
||||
.some((p) => this.getTask(p.blocked).status !== StatusCode.DONE);
|
||||
.map((p) => this.getTask(p.blocked))
|
||||
.filter((blockedTask) => !blockedTask.deleted)
|
||||
.some((blockedTask) => blockedTask.status !== StatusCode.DONE);
|
||||
};
|
||||
|
||||
public isBranchHidden(id: number) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue