From ef7eab3ac1f5c0ac8062bb4810d0199d0abc82ef Mon Sep 17 00:00:00 2001 From: Julien Perrin Date: Wed, 11 Dec 2024 11:55:43 +0100 Subject: [PATCH] fix: pb maj email si un est null --- ui/src/backoffice/components/common/page/form/Select.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/backoffice/components/common/page/form/Select.jsx b/ui/src/backoffice/components/common/page/form/Select.jsx index 440666c48..873ac7f1a 100644 --- a/ui/src/backoffice/components/common/page/form/Select.jsx +++ b/ui/src/backoffice/components/common/page/form/Select.jsx @@ -30,7 +30,7 @@ const Select = ({ useEffect(() => { setFilteredOptions( options.filter(option => - normalizeString(option[optionLabel]).includes(normalizeString(filter)) + option[optionLabel] && normalizeString(option[optionLabel]).includes(normalizeString(filter)) ) ); }, [filter, options, optionLabel]);