Skip to content

Commit

Permalink
fix: remove flag from UI (#7857)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier authored Aug 13, 2024
1 parent caac8f3 commit 376012d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { formatApiPath } from 'utils/formatPath';
import handleErrorResponses from '../httpErrorResponseHandler';
import { useConditionalSWR } from '../useConditionalSWR/useConditionalSWR';
import useUiConfig from '../useUiConfig/useUiConfig';
import { useUiFlag } from 'hooks/useUiFlag';

const ENDPOINT = 'api/admin/scim-settings';

Expand All @@ -21,10 +20,9 @@ const DEFAULT_DATA: ScimSettings = {

export const useScimSettings = () => {
const { isEnterprise } = useUiConfig();
const scimEnabled = useUiFlag('scimApi');

const { data, error, mutate } = useConditionalSWR<ScimSettings>(
isEnterprise() && scimEnabled,
isEnterprise(),
DEFAULT_DATA,
formatApiPath(ENDPOINT),
fetcher,
Expand Down

0 comments on commit 376012d

Please sign in to comment.