Skip to content

Commit

Permalink
feat: pass requirement to skip api version to app-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Feb 20, 2024
1 parent 0d1f0ac commit 3be83ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions adapter/src/components/ServerVersionProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ export const ServerVersionProvider = ({
: { loading: true, error: undefined, systemInfo: undefined }
)

// version is hardcoded to 2.41-SNAPSHOT to access correct api, but should be populated from public endpoint
// version is not currently available, minimum for login app
if (loginApp) {
setSystemInfoState({
loading: false,
error: undefined,
systemInfo: { version: '2.41-SNAPSHOT' },
systemInfo: { version: '2.41' },
})
return
}
Expand Down Expand Up @@ -181,6 +181,7 @@ export const ServerVersionProvider = ({
plugin={plugin}
parentAlertsAdd={parentAlertsAdd}
showAlertsInPlugin={showAlertsInPlugin}
skipApiVersion={loginApp ? true : false}
>
{children}
</Provider>
Expand Down

0 comments on commit 3be83ca

Please sign in to comment.