mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-12 18:44:14 +00:00
allow searching multiple words when searching for process models w/ burnettk
This commit is contained in:
parent
85626ba399
commit
fba0860227
@ -36,10 +36,17 @@ export default function ProcessModelSearch({
|
||||
|
||||
const shouldFilterProcessModel = (options: any) => {
|
||||
const processModel: ProcessModel = options.item;
|
||||
const { inputValue } = options;
|
||||
return getFullProcessModelLabel(processModel)
|
||||
.toLowerCase()
|
||||
.includes((inputValue || '').toLowerCase());
|
||||
let { inputValue } = options;
|
||||
if (!inputValue) {
|
||||
inputValue = '';
|
||||
}
|
||||
const inputValueArray = inputValue.split(' ');
|
||||
const processModelLowerCase =
|
||||
getFullProcessModelLabel(processModel).toLowerCase();
|
||||
|
||||
return inputValueArray.every((i: any) => {
|
||||
return processModelLowerCase.includes((i || '').toLowerCase());
|
||||
});
|
||||
};
|
||||
return (
|
||||
<ComboBox
|
||||
|
Loading…
x
Reference in New Issue
Block a user