Skip to content

Commit

Permalink
feat: Update tasks/mutations/task_template_mutations.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Max Schäfer <[email protected]>
  • Loading branch information
florian-sabonchi and MaxSchaefer authored Jul 11, 2023
1 parent 6e0b0f5 commit e5c6d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/mutations/task_template_mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type QueryKey = 'personalTaskTemplates' | 'wardTaskTemplates'

export const useWardTaskTemplateQuery = (wardId? : string, onSuccess: (data: TaskTemplateDTO[]) => void = noop) => {
return useQuery({
queryKey: ['wardTaskTemplates'],
queryKey: [QueryKey],
queryFn: async () => {
let wardTaskTemplates : TaskTemplateDTO[] = []
if (wardId !== undefined) {
Expand Down

0 comments on commit e5c6d28

Please sign in to comment.