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:
parent
caac8f3fcb
commit
376012ddd1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user