File tree 1 file changed +0
-8
lines changed
query-connector/src/app/(pages)/userManagement/components/usersTable
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import classNames from "classnames";
20
20
import type { ModalRef } from "../../../../ui/designSystem/modal/Modal" ;
21
21
import UserModal from "../../components/userModal/userModal" ;
22
22
import { CustomUserQuery } from "@/app/models/entities/query" ;
23
- import { getCustomQueries } from "@/app/backend/query-building" ;
24
23
25
24
export type UsersTableProps = {
26
25
role : string ;
@@ -112,7 +111,6 @@ const UsersTable: React.FC<UsersTableProps> = ({ role }) => {
112
111
< UserGroupsTable
113
112
fetchGroupMembers = { fetchGroupMembers }
114
113
fetchGroupQueries = { fetchGroupQueries }
115
- fetchAllQueries = { fetchAllQueries }
116
114
userGroups = { userGroups }
117
115
/>
118
116
</ >
@@ -183,12 +181,6 @@ const UsersTable: React.FC<UsersTableProps> = ({ role }) => {
183
181
return queries . items ;
184
182
}
185
183
186
- async function fetchAllQueries ( ) {
187
- const queriesResponse = await getCustomQueries ( ) ;
188
- setAllQueries ( queriesResponse ) ;
189
- return queriesResponse ;
190
- }
191
-
192
184
// page load
193
185
useEffect ( ( ) => {
194
186
role == UserRole . SUPER_ADMIN && users . length <= 0 && fetchUsers ( ) ;
You can’t perform that action at this time.
0 commit comments