Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AAE-29384 Fix for process variable filtering
Browse files Browse the repository at this point in the history
DudaRobert committed Dec 13, 2024
1 parent fff623b commit 6d05a7b
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -133,6 +133,9 @@ export class ProcessListCloudService extends BaseCloudService {
}
}

/*
* Remove keys with empty values from the query data.
*/
Object.keys(queryData).forEach((key) => {
const value = queryData[key];
const isValueEmpty = !value;
@@ -141,6 +144,14 @@ export class ProcessListCloudService extends BaseCloudService {
delete queryData[key];
}
});

/*
* Remove process variable filter keys with empty values from the query data.
*/
if (queryData['processVariableFilters']) {
queryData['processVariableFilters'] = queryData['processVariableFilters'].filter((filter) => filter.value);
}

return queryData;
}

Original file line number Diff line number Diff line change
@@ -131,6 +131,9 @@ export class TaskListCloudService extends BaseCloudService implements TaskListCl
}
}

/*
* Remove keys with empty values from the query data.
*/
Object.keys(queryData).forEach((key) => {
const value = queryData[key];
const isValueEmpty = !value;
@@ -140,6 +143,13 @@ export class TaskListCloudService extends BaseCloudService implements TaskListCl
}
});

/*
* Remove process variable filter keys with empty values from the query data.
*/
if (queryData['processVariableFilters']) {
queryData['processVariableFilters'] = queryData['processVariableFilters'].filter((filter) => filter.value);
}

return queryData;
}

0 comments on commit 6d05a7b

Please sign in to comment.