From de1bfedc235f929ac5378a45c30db5cbd865dfa7 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Fri, 16 Feb 2024 13:05:46 +0100 Subject: [PATCH] fix: clean up --- adapter/src/components/ServerVersionProvider.js | 6 ++---- adapter/src/index.js | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/adapter/src/components/ServerVersionProvider.js b/adapter/src/components/ServerVersionProvider.js index bacc31a4..ea57b18b 100644 --- a/adapter/src/components/ServerVersionProvider.js +++ b/adapter/src/components/ServerVersionProvider.js @@ -105,13 +105,12 @@ export const ServerVersionProvider = ({ : { loading: true, error: undefined, systemInfo: undefined } ) - // in reality we probably want a request to get api version + // version is hardcoded to 2.41-SNAPSHOT to access correct api, but should be populated from public endpoint if (loginApp) { - const fakeSystemInfo = { version: '2.40-SNAPSHOT' } setSystemInfoState({ loading: false, error: undefined, - systemInfo: fakeSystemInfo, + systemInfo: { version: '2.41-SNAPSHOT' }, }) return } @@ -182,7 +181,6 @@ export const ServerVersionProvider = ({ plugin={plugin} parentAlertsAdd={parentAlertsAdd} showAlertsInPlugin={showAlertsInPlugin} - loginApp={loginApp} > {children} diff --git a/adapter/src/index.js b/adapter/src/index.js index ed40a065..6cd446a7 100644 --- a/adapter/src/index.js +++ b/adapter/src/index.js @@ -37,6 +37,7 @@ const AppAdapter = ({ url={url} apiVersion={apiVersion} pwaEnabled={pwaEnabled} + loginApp={loginApp} plugin={false} > {children}