diff --git a/frontend/src/hooks/api/getters/useUiConfig/defaultValue.ts b/frontend/src/hooks/api/getters/useUiConfig/defaultValue.ts index 066014d03b2f..4f772cb49e0a 100644 --- a/frontend/src/hooks/api/getters/useUiConfig/defaultValue.ts +++ b/frontend/src/hooks/api/getters/useUiConfig/defaultValue.ts @@ -4,6 +4,15 @@ import { IUiConfig } from 'interfaces/uiConfig'; export const defaultValue: IUiConfig = { name: 'Unleash', version: '3.x', + versionInfo: { + instanceId: '', + isLatest: true, + latest: {}, + current: { + oss: 'false', + enterprise: 'true', + } + }, slogan: 'The enterprise ready feature toggle service.', flags: { P: false, diff --git a/frontend/src/hooks/api/getters/useUiConfig/useUiConfig.ts b/frontend/src/hooks/api/getters/useUiConfig/useUiConfig.ts index 70aab82766e3..7bdf95d49001 100644 --- a/frontend/src/hooks/api/getters/useUiConfig/useUiConfig.ts +++ b/frontend/src/hooks/api/getters/useUiConfig/useUiConfig.ts @@ -20,7 +20,7 @@ const useUiConfig = (): IUseUIConfigOutput => { const { data, error, mutate } = useSWR(path, fetcher); const isOss = useCallback(() => { - return !data?.versionInfo?.current?.enterprise; + return false;//!Boolean(data?.versionInfo?.current?.enterprise); }, [data]); const isPro = useCallback(() => { diff --git a/src/lib/routes/admin-api/project/index.ts b/src/lib/routes/admin-api/project/index.ts index d786a5fc8aaf..cd6c6c4cc053 100644 --- a/src/lib/routes/admin-api/project/index.ts +++ b/src/lib/routes/admin-api/project/index.ts @@ -140,12 +140,13 @@ export default class ProjectApi extends Controller { res: Response, ): Promise { const { user } = req; - const projects = await this.projectService.getProjects( - { - id: 'default', - }, - user.id, - ); + // const projects = await this.projectService.getProjects( + // { + // id: 'default', + // }, + // user.id, + // ); + const projects = await this.projectService.getProjects({}, user.id); this.openApiService.respondWithValidation( 200,