From 2917e72e77be790b77b63ee7fd42158323421c5e Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 28 May 2020 11:54:09 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9pare=20la=20saisie=20du=20taux?= =?UTF-8?q?=20atmp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../conversation/select/SelectTauxRisque.js | 14 -------------- .../conversation/select/SelectTauxRisque.worker.js | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) 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) } }