File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
pages/DeploymentSettingsPage/IdpOrgSyncPage Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,10 @@ export const patchOrganizationSyncSettings = (queryClient: QueryClient) => {
15
15
} ;
16
16
} ;
17
17
18
- export const organizationIdpSyncSettings = ( ) => {
18
+ export const organizationIdpSyncSettings = ( isIdpSyncEnabled : boolean ) => {
19
19
return {
20
20
queryKey : getOrganizationIdpSyncSettingsKey ( ) ,
21
21
queryFn : ( ) => API . getOrganizationIdpSyncSettings ( ) ,
22
+ enabled : isIdpSyncEnabled ,
22
23
} ;
23
24
} ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const IdpOrgSyncPage: FC = () => {
28
28
data : orgSyncSettingsData ,
29
29
isLoading,
30
30
error,
31
- } = useQuery ( organizationIdpSyncSettings ( ) ) ;
31
+ } = useQuery ( organizationIdpSyncSettings ( isIdpSyncEnabled ) ) ;
32
32
33
33
const patchOrganizationSyncSettingsMutation = useMutation (
34
34
patchOrganizationSyncSettings ( queryClient ) ,
You can’t perform that action at this time.
0 commit comments