Skip to content

Commit

Permalink
remove package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrin2005 committed Jan 8, 2025
1 parent cace396 commit f60d1a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Facility/FacilityUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ export default function FacilityUsers(props: { facilityId: number }) {
});
const [activeTab, setActiveTab] = useState(0);
const { facilityId } = props;
const { username } = qParams;

const { data: userListData, isLoading: userListLoading } = useQuery({
queryKey: ["facilityUsers", facilityId, qParams],
queryFn: query(routes.facility.getUsers, {
pathParams: { facility_id: facilityId },
queryParams: {
username,
username: qParams.username,
limit: qParams.limit,
offset: (qParams.page - 1) * qParams.limit,
},
Expand Down Expand Up @@ -103,7 +102,7 @@ export default function FacilityUsers(props: { facilityId: number }) {
<UserListView
users={userListData?.results ?? []}
onSearch={(username) => updateQuery({ username })}
searchValue={username || ""}
searchValue={qParams.username}
activeTab={activeTab}
onTabChange={setActiveTab}
/>
Expand Down

0 comments on commit f60d1a2

Please sign in to comment.