From 376012ddd1a2ebd00033204d2205ece47ea221ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 13 Aug 2024 13:44:16 +0200 Subject: [PATCH] fix: remove flag from UI (#7857) --- .../src/hooks/api/getters/useScimSettings/useScimSettings.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/hooks/api/getters/useScimSettings/useScimSettings.ts b/frontend/src/hooks/api/getters/useScimSettings/useScimSettings.ts index 123fce0c41..cdfd4300c7 100644 --- a/frontend/src/hooks/api/getters/useScimSettings/useScimSettings.ts +++ b/frontend/src/hooks/api/getters/useScimSettings/useScimSettings.ts @@ -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( - isEnterprise() && scimEnabled, + isEnterprise(), DEFAULT_DATA, formatApiPath(ENDPOINT), fetcher,