Skip to content

Commit

Permalink
Fixed format issues with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendy authored and Wendy committed Oct 4, 2024
1 parent 4849cef commit c6ada31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export default function HealthcareChoicesSearch({ form, choice, initialData }) {
};

const handleSelectValue = (id, key) => {
const name = key.children.filter( el => el !== undefined).join('').trim();
const name = key.children
.filter((el) => el !== undefined)
.join('')
.trim();
setValue({ id, name });
setSearch(name);
form.setFieldValue(`healthcareChoices.${choice}Id`, id);
Expand Down
18 changes: 9 additions & 9 deletions server/routes/api/v1/physicians/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export default async function (fastify) {
type: 'object',
properties: {
id: { type: 'string' },
name: { type: 'string'}
}
}
}
name: { type: 'string' },
},
},
},
},
},
},
Expand Down Expand Up @@ -89,11 +89,11 @@ export default async function (fastify) {
orderBy: [{ firstName: 'asc' }, { lastName: 'asc' }],
where: whereClase,
include: {
hospitals: true
}
})
return exists
})
hospitals: true,
},
});
return exists;
});

reply.setPaginationHeaders(page, perPage, options.length).send(options);
},
Expand Down

0 comments on commit c6ada31

Please sign in to comment.