Skip to content

Commit

Permalink
fix: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DasProffi committed Aug 14, 2023
1 parent 7afc1de commit 9d22731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion tasks/components/layout/PatientList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import type { PatientDTO, PatientWithBedAndRoomDTO } from '../../mutations/patie
import { usePatientDischargeMutation, usePatientListQuery } from '../../mutations/patient_mutations'
import { Label } from '../Label'
import { MultiSearchWithMapping, SimpleSearchWithMapping } from '../../utils/simpleSearch'
import { WardOverviewContext } from '../../pages/ward/[id]'
import { LoadingAndErrorComponent } from '@helpwave/common/components/LoadingAndErrorComponent'
import { HideableContentSection } from '@helpwave/common/components/HideableContentSection'

Expand Down
10 changes: 3 additions & 7 deletions tasks/mutations/patient_mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,13 @@ export const usePatientAssignmentByWardQuery = (wardId: string) => {
})
}

// TODO remove this comment
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const usePatientListQuery = (wardId: string) => {
const queryClient = useQueryClient()
export const usePatientListQuery = (organisationID?: string) => {
export const usePatientListQuery = (organisationId?: string) => {
return useQuery({
queryKey: [patientsQueryKey, 'patientList'],
queryFn: async () => {
const req = new GetPatientListRequest()
if (organisationID) {
req.setOrganisationId(organisationID)
if (organisationId) {
req.setOrganisationId(organisationId)
}
const res = await patientService.getPatientList(req, getAuthenticatedGrpcMetadata())

Expand Down

0 comments on commit 9d22731

Please sign in to comment.