merge claim detail

This commit is contained in:
2023-11-01 22:46:59 +07:00
parent 01fcaf7181
commit 5b3cddf5fe
18 changed files with 4371 additions and 3416 deletions

View File

@@ -228,6 +228,8 @@ export default function PractitionerForm({ isEdit, currentPractitioner }: Props)
useEffect(() => {
axios.get(`/search-organizations`).then((response) => {
console.log(response);
setOrganizations(
response.data.map((item: any) => ({ ...item, name: item.name, value: item.id }))
);
@@ -489,7 +491,11 @@ export default function PractitionerForm({ isEdit, currentPractitioner }: Props)
options={availableOrganizations}
value={findValueOrganization(form.organizationId) ?? ''}
getOptionLabel={(option) => option.name}
isOptionEqualToValue={(option, value) => option.value === value.value}
isOptionEqualToValue={(option, value) => {
console.log(value, option, 'test')
return option.value === value.value
}
}
onChange={(event, value) => handleOrganizationIdChange(index, value)}
renderInput={(params) => (
<TextField {...params} label="Rumah Sakit" variant="outlined" />