Skip to content

Commit

Permalink
formatted search text (AOT-Technologies#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
abilpraju-aot authored Dec 13, 2023
1 parent 733b6bd commit de6fc24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions forms-flow-web/src/apiManager/services/processServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,16 @@ export const fetchAllBpmProcesses = ( {tenant_key = null,
if (tenant_key) {
url = url + "&tenantIdIn=" + tenant_key;
}

if (firstResult) {
url = url + "&firstResult=" + firstResult;
}
if (maxResults) {
url = url + "&maxResults=" + maxResults;
}

if (searchKey) {
url = url + `&nameLike=%${searchKey}%`;
url = url + `&nameLike=%25${searchKey}%25`;
}
return (dispatch) => {
// eslint-disable-next-line max-len
Expand Down Expand Up @@ -127,7 +129,7 @@ export const fetchAllBpmProcessesCount = (tenant_key,searchKey,) => {
url = url + "&tenantIdIn=" + tenant_key;
}
if(searchKey){
url = url + `&nameLike=%${searchKey}%`;
url = url + `&nameLike=%25${searchKey}%25`;
}

return RequestService.httpGETRequest(
Expand Down

0 comments on commit de6fc24

Please sign in to comment.