Skip to content

Commit

Permalink
feat: replace useTaskTemplateQuery with useWardTaskTemplateQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-sabonchi committed Jul 11, 2023
1 parent 93ba045 commit ed3a99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/components/TaskTemplateWardPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { Span } from '@helpwave/common/components/Span'
import { Button } from '@helpwave/common/components/Button'
import { useRouter } from 'next/router'
import { TaskTemplateCard } from './cards/TaskTemplateCard'
import { useTaskTemplateQuery } from '../mutations/task_template_mutations'
import { useContext } from 'react'
import { OrganizationOverviewContext } from '../pages/organizations/[uuid]'
import { useWardTaskTemplateQuery } from '../mutations/task_template_mutations'

type TaskTemplateWardPreviewTranslation = {
showAllTaskTemplates: string,
Expand Down Expand Up @@ -44,7 +44,7 @@ export const TaskTemplateWardPreview = ({

const context = useContext(OrganizationOverviewContext)

const { data, isLoading, isError } = useTaskTemplateQuery('wardTaskTemplates')
const { data, isLoading, isError } = useWardTaskTemplateQuery(wardID)

// TODO add view for loading
if (isLoading || !context.state.wardID) {
Expand Down

0 comments on commit ed3a99c

Please sign in to comment.