Skip to content

Commit

Permalink
Format selected value
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendy authored and Wendy committed Oct 4, 2024
1 parent a036688 commit 4849cef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function HealthcareChoicesSearch({ form, choice, initialData }) {
};

const handleSelectValue = (id, key) => {
const name = key.children;
const name = key.children.filter( el => el !== undefined).join('').trim();
setValue({ id, name });
setSearch(name);
form.setFieldValue(`healthcareChoices.${choice}Id`, id);
Expand Down

0 comments on commit 4849cef

Please sign in to comment.