diff --git a/src/components/Facility/FacilityUsers.tsx b/src/components/Facility/FacilityUsers.tsx index 2e8e7b4a769..8678c5ebf99 100644 --- a/src/components/Facility/FacilityUsers.tsx +++ b/src/components/Facility/FacilityUsers.tsx @@ -11,7 +11,6 @@ import useFilters from "@/hooks/useFilters"; import routes from "@/Utils/request/api"; import query from "@/Utils/request/query"; -import useTanStackQueryInstead from "@/Utils/request/useQuery"; export default function FacilityUsers(props: { facilityId: number }) { const { t } = useTranslation(); @@ -22,16 +21,6 @@ export default function FacilityUsers(props: { facilityId: number }) { const [activeTab, setActiveTab] = useState(0); const { facilityId } = props; - const { data: facilityData } = useTanStackQueryInstead( - routes.getAnyFacility, - { - pathParams: { - id: facilityId, - }, - prefetch: facilityId !== undefined, - }, - ); - const { data: userListData, isLoading: userListLoading } = useQuery({ queryKey: ["facilityUsers", facilityId], queryFn: query(routes.facility.getUsers, { @@ -44,15 +33,11 @@ export default function FacilityUsers(props: { facilityId: number }) { return