feat(oms-task-list): simplify filter logic

Simplify the task list filter logic by using a cleaner object literal approach
instead of nested properties. This improves readability and maintainability of
the filtering conditions.

Ref: #5072
This commit is contained in:
Nino
2025-05-12 14:03:46 +02:00
parent 71ee7ea842
commit a978f94519

View File

@@ -80,11 +80,10 @@ export class ReturnTaskListComponent {
const processId = this.processId();
const appearance = this.appearance();
if (processId) {
const filter: Record<string, unknown> =
appearance === 'review' ? { eob: true } : { completed: false };
const queryToken: QueryTokenInput = {
filter: {
completed: false,
eob: appearance === 'review' ? true : false,
},
filter,
};
untracked(() =>