1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: remove flag from UI (#7857)

This commit is contained in:
Gastón Fournier 2024-08-13 13:44:16 +02:00 committed by GitHub
parent caac8f3fcb
commit 376012ddd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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';
@ -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,