From 08d2dc1e42e32e67c0f8d3932c118b2cb3ed4e17 Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Fri, 11 Oct 2019 17:36:38 +0200 Subject: [PATCH] SONAR-12470 Wrong edition in footer at startup --- server/sonar-web/src/main/js/app/types.d.ts | 2 +- server/sonar-web/src/main/js/store/appState.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/app/types.d.ts b/server/sonar-web/src/main/js/app/types.d.ts index 18ed0575aa5..d9150485955 100644 --- a/server/sonar-web/src/main/js/app/types.d.ts +++ b/server/sonar-web/src/main/js/app/types.d.ts @@ -97,7 +97,7 @@ declare namespace T { branchesEnabled?: boolean; canAdmin?: boolean; defaultOrganization: string; - edition: EditionKey; + edition: EditionKey | undefined; globalPages?: Extension[]; organizationsEnabled?: boolean; productionDatabase: boolean; diff --git a/server/sonar-web/src/main/js/store/appState.ts b/server/sonar-web/src/main/js/store/appState.ts index 844fe669c22..7fbb894f15a 100644 --- a/server/sonar-web/src/main/js/store/appState.ts +++ b/server/sonar-web/src/main/js/store/appState.ts @@ -17,7 +17,6 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { EditionKey } from '../apps/marketplace/utils'; import { ActionType } from './utils/actions'; export const enum Actions { @@ -47,7 +46,7 @@ const defaultValue: T.AppState = { authenticationError: false, authorizationError: false, defaultOrganization: '', - edition: EditionKey.community, + edition: undefined, organizationsEnabled: false, productionDatabase: true, qualifiers: [], -- 2.39.5