Skip to content

Commit 727698b

Browse files
committed
fix: cleanup
1 parent cbe8f7d commit 727698b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

site/src/pages/DeploymentSettingsPage/IdpOrgSyncPage/IdpOrgSyncPageView.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import type React from "react";
3939
import { useState } from "react";
4040
import type { FC } from "react";
4141
import { docs } from "utils/docs";
42-
import { OrganizationPills } from "./OrganizationPills";
4342
import * as Yup from "yup";
43+
import { OrganizationPills } from "./OrganizationPills";
4444

4545
interface IdpSyncPageViewProps {
4646
organizationSyncSettings: OrganizationSyncSettings | undefined;
@@ -80,10 +80,6 @@ export const IdpOrgSyncPageView: FC<IdpSyncPageViewProps> = ({
8080
? Object.entries(form.values.mapping).length
8181
: 0;
8282

83-
if (!organizationSyncSettings) {
84-
return <Loader />;
85-
}
86-
8783
const getOrgNames = (orgIds: readonly string[]) => {
8884
return orgIds.map(
8985
(orgId) =>
@@ -251,8 +247,6 @@ interface IdpMappingTableProps {
251247
}
252248

253249
const IdpMappingTable: FC<IdpMappingTableProps> = ({ isEmpty, children }) => {
254-
const isLoading = false;
255-
256250
return (
257251
<TableContainer>
258252
<Table>
@@ -265,10 +259,6 @@ const IdpMappingTable: FC<IdpMappingTableProps> = ({ isEmpty, children }) => {
265259
</TableHead>
266260
<TableBody>
267261
<ChooseOne>
268-
<Cond condition={isLoading}>
269-
<TableLoader />
270-
</Cond>
271-
272262
<Cond condition={isEmpty}>
273263
<TableRow>
274264
<TableCell colSpan={999}>

0 commit comments

Comments
 (0)