From 57ae77fd9d8b1f0048ed441921e7c8fbcb75c39e Mon Sep 17 00:00:00 2001 From: Wendy Date: Mon, 21 Oct 2024 02:13:09 -0700 Subject: [PATCH] Reformatted physician input value --- client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx b/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx index 520e6c0e..e96371ee 100644 --- a/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx +++ b/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx @@ -72,10 +72,7 @@ export default function HealthcareChoicesSearch({ form, choice, initialData }) { }; const handleSelectValue = (id, key) => { - const name = key.children - .filter((el) => el !== undefined && el) - .join('') - .trim(); + const name = key.children.filter((el) => el.trim() !== '').join(' '); setValue({ id, name }); setSearch(name); form.setFieldValue(`healthcareChoices.${choice}Id`, id);