diff --git a/mon-entreprise/source/components/conversation/select/SelectTauxRisque.js b/mon-entreprise/source/components/conversation/select/SelectTauxRisque.js index 411bc6b33..e5b2d4466 100644 --- a/mon-entreprise/source/components/conversation/select/SelectTauxRisque.js +++ b/mon-entreprise/source/components/conversation/select/SelectTauxRisque.js @@ -18,7 +18,6 @@ function SelectComponent({ onChange, onSubmit, options }) { worker.onmessage = ({ data: results }) => setSearchResults(results) }, []) - return ( <> ))} - {/* - value['Taux net']} - clearable={false} - value={selectValue} - /> - */} ) } diff --git a/mon-entreprise/source/components/conversation/select/SelectTauxRisque.worker.js b/mon-entreprise/source/components/conversation/select/SelectTauxRisque.worker.js index 976b53216..c00c91aeb 100644 --- a/mon-entreprise/source/components/conversation/select/SelectTauxRisque.worker.js +++ b/mon-entreprise/source/components/conversation/select/SelectTauxRisque.worker.js @@ -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) } }