Skip to content

Commit 887e091

Browse files
committed
fix vestigial prop
1 parent f511bc9 commit 887e091

File tree

1 file changed

+0
-8
lines changed
  • query-connector/src/app/(pages)/userManagement/components/usersTable

1 file changed

+0
-8
lines changed

query-connector/src/app/(pages)/userManagement/components/usersTable/usersTable.tsx

-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import classNames from "classnames";
2020
import type { ModalRef } from "../../../../ui/designSystem/modal/Modal";
2121
import UserModal from "../../components/userModal/userModal";
2222
import { CustomUserQuery } from "@/app/models/entities/query";
23-
import { getCustomQueries } from "@/app/backend/query-building";
2423

2524
export type UsersTableProps = {
2625
role: string;
@@ -112,7 +111,6 @@ const UsersTable: React.FC<UsersTableProps> = ({ role }) => {
112111
<UserGroupsTable
113112
fetchGroupMembers={fetchGroupMembers}
114113
fetchGroupQueries={fetchGroupQueries}
115-
fetchAllQueries={fetchAllQueries}
116114
userGroups={userGroups}
117115
/>
118116
</>
@@ -183,12 +181,6 @@ const UsersTable: React.FC<UsersTableProps> = ({ role }) => {
183181
return queries.items;
184182
}
185183

186-
async function fetchAllQueries() {
187-
const queriesResponse = await getCustomQueries();
188-
setAllQueries(queriesResponse);
189-
return queriesResponse;
190-
}
191-
192184
// page load
193185
useEffect(() => {
194186
role == UserRole.SUPER_ADMIN && users.length <= 0 && fetchUsers();

0 commit comments

Comments
 (0)