Skip to content

Commit

Permalink
Use formID variable as query key
Browse files Browse the repository at this point in the history
  • Loading branch information
charmcitygavin committed Nov 2, 2023
1 parent 1b9a58c commit 3bbb5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/ui/src/api/useGetForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const getForm = async (
};

export const useGetForm = (formId: string, formVersion?: string) => {
return useQuery<any, ReactQueryApiError>(["formID"], () =>
return useQuery<any, ReactQueryApiError>([formId], () =>
getForm(formId, formVersion)
);
};

0 comments on commit 3bbb5ed

Please sign in to comment.