Fixed prio sort nnot working

This commit is contained in:
Nicolai Ort 2020-07-15 15:04:10 +02:00
parent bffbe6dffa
commit 7d78c14033
2 changed files with 388 additions and 388 deletions

View File

@ -77,7 +77,7 @@ export class TaskTableComponent extends TableComponentBase<ScrumTask> {
(task) => (task) =>
(this.filterUserstoryId === null || (this.filterUserstoryId === null ||
task.userstoryId === this.filterUserstoryId) && task.userstoryId === this.filterUserstoryId) &&
(this.filterPriority === null || task.priority === this.filterPriority) (this.filterPriority === null || task.priority.toLowerCase() == this.filterPriority.toLowerCase())
); );
} }

View File

@ -79,7 +79,7 @@ export class UserstoryInnerTableComponent extends TableComponentBase<ScrumUserst
if (this.filterPriority == null) { if (this.filterPriority == null) {
return this.items; return this.items;
} }
return this.items.filter((t) => t.priority == this.filterPriority); return this.items.filter((t) => t.priority.toLowerCase() == this.filterPriority.toLowerCase());
} }
/** /**