Set status from filters
This commit is contained in:
parent
533a7b7372
commit
164bd2ee17
|
@ -235,12 +235,18 @@ export default function ProcessInstanceListTable({
|
||||||
processModelFullIdentifier
|
processModelFullIdentifier
|
||||||
) {
|
) {
|
||||||
// queryParamString += `&process_model_identifier=${processModelFullIdentifier}`;
|
// queryParamString += `&process_model_identifier=${processModelFullIdentifier}`;
|
||||||
} else if (filters[paramName]) {
|
} else if (
|
||||||
// @ts-expect-error TS(7053) FIXME:
|
paramName === 'process_status' &&
|
||||||
const functionToCall = parametersToGetFromSearchParams[paramName];
|
typeof filters.process_status === 'string'
|
||||||
if (functionToCall !== null) {
|
) {
|
||||||
functionToCall(searchParams.get(paramName) || '');
|
const processStatusSelectedArray: string[] = [];
|
||||||
|
PROCESS_STATUSES.forEach((processStatusOption: any) => {
|
||||||
|
const regex = new RegExp(`\\b${processStatusOption}\\b`);
|
||||||
|
if (filters.process_status.match(regex)) {
|
||||||
|
processStatusSelectedArray.push(processStatusOption);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
setProcessStatusSelection(processStatusSelectedArray);
|
||||||
setShowFilterOptions(true);
|
setShowFilterOptions(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue