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