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}