Skip to content

Commit

Permalink
AAE-29384 Fix for process variable filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaRobert committed Dec 13, 2024
1 parent fff623b commit 8845b15
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ export class ProcessListCloudService extends BaseCloudService {
}
}

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

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

return queryData;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ 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 !== '' && filter.value !== null && filter.value !== undefined
);
}

/*
* Remove keys with empty values from the query data.
*/
Object.keys(queryData).forEach((key) => {
const value = queryData[key];
const isValueEmpty = !value;
Expand Down

0 comments on commit 8845b15

Please sign in to comment.