mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
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:
@@ -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(() =>
|
||||
|
||||
Reference in New Issue
Block a user