lint
This commit is contained in:
parent
5f6bb4a0f8
commit
f07bf182e5
|
@ -233,32 +233,24 @@ export default function ProcessInstanceListTable({
|
|||
}
|
||||
});
|
||||
|
||||
Object.keys(parametersToGetFromSearchParams).forEach(
|
||||
(paramName: string) => {
|
||||
if (paramName === 'process_model_identifier') {
|
||||
setProcessModelSelection(null);
|
||||
processModelAvailableItems.forEach((item: any) => {
|
||||
if (item.id === filters.process_model_identifier) {
|
||||
setProcessModelSelection(item);
|
||||
}
|
||||
});
|
||||
} else if (paramName === 'process_status') {
|
||||
|
||||
const processStatusSelectedArray: string[] = [];
|
||||
setProcessStatusSelection(processStatusSelectedArray);
|
||||
if (!filters.process_status) {
|
||||
return;
|
||||
}
|
||||
if (filters.process_status) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
);
|
||||
setProcessStatusSelection(processStatusSelectedArray);
|
||||
}, [
|
||||
processInstanceFilters,
|
||||
parametersToAlwaysFilterBy,
|
||||
|
|
Loading…
Reference in New Issue