Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Feb 16, 2024
1 parent 9193d3b commit de1bfed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions adapter/src/components/ServerVersionProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -182,7 +181,6 @@ export const ServerVersionProvider = ({
plugin={plugin}
parentAlertsAdd={parentAlertsAdd}
showAlertsInPlugin={showAlertsInPlugin}
loginApp={loginApp}
>
{children}
</Provider>
Expand Down
1 change: 1 addition & 0 deletions adapter/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const AppAdapter = ({
url={url}
apiVersion={apiVersion}
pwaEnabled={pwaEnabled}
loginApp={loginApp}
plugin={false}
>
<LoginAppWrapper>{children}</LoginAppWrapper>
Expand Down

0 comments on commit de1bfed

Please sign in to comment.