🐛 répare la saisie du taux atmp

pull/1059/head
Johan Girod 2020-05-28 11:54:09 +02:00
parent 3e68f5bd82
commit 2917e72e77
2 changed files with 1 additions and 15 deletions

View File

@ -18,7 +18,6 @@ function SelectComponent({ onChange, onSubmit, options }) {
worker.onmessage = ({ data: results }) => setSearchResults(results)
}, [])
return (
<>
<input
@ -113,19 +112,6 @@ function SelectComponent({ onChange, onSubmit, options }) {
</span>
</div>
))}
{/*
<ReactSelect
options={options}
onChange={submitOnChange}
labelKey="Nature du risque"
valueKey="Code risque"
placeholder="Tapez des mots ou déroulez la liste complète"
optionRenderer={SelectOption}
valueRenderer={value => value['Taux net']}
clearable={false}
value={selectValue}
/>
*/}
</>
)
}

View File

@ -9,7 +9,7 @@ onmessage = function(event) {
})
if (event.data.input) {
let results = fuse.search(event.data.input)
let results = fuse.search(event.data.input).map(({ item }) => item)
postMessage(results)
}
}