Skip to content

Commit

Permalink
(fix) return encounter type uuid from encounter type object (openmrs#…
Browse files Browse the repository at this point in the history
…1836)

return uuid from encounter type object
  • Loading branch information
arodidev authored and denniskigen committed May 22, 2024
1 parent 6fb6a7b commit 52f77d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/esm-form-engine-app/src/hooks/useFormSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const useFormSchema = (formUuid: string) => {

const { data, error, isLoading } = useSWR<{ data: FormSchema }>(url, openmrsFetch);

return { schema: data?.data, error, isLoading };
const schema = { ...data?.data, encounterType: data?.data.encounterType['uuid'] };

return { schema, error, isLoading };
};

export default useFormSchema;

0 comments on commit 52f77d3

Please sign in to comment.