Skip to content

Commit

Permalink
Reformatted physician input value
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendy authored and Wendy committed Oct 21, 2024
1 parent 02e8d16 commit 57ae77f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57ae77f

Please sign in to comment.