Skip to content

Commit

Permalink
fix: provide fallback api version [LIBS-683] (#877)
Browse files Browse the repository at this point in the history
* fix: provide fallback api version [LIBS-683]

* fix: update upload-artifiact for CI

* fix: update download artifact
  • Loading branch information
tomzemp authored Sep 26, 2024
1 parent 694edde commit dc7bdfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dhis2-verify-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build
run: yarn build

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: lib-build
path: |
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
with:
node-version: 14.x

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: lib-build

Expand All @@ -83,7 +83,7 @@ jobs:
with:
node-version: 14.x

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: lib-build

Expand Down
4 changes: 3 additions & 1 deletion adapter/src/components/ServerVersionProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ export const ServerVersionProvider = ({
setSystemInfoState({
loading: false,
error: undefined,
systemInfo: { version: loginConfig.apiVersion },
systemInfo: {
version: loginConfig.apiVersion ?? '2.41',
},
})
})
.catch((e) => {
Expand Down

0 comments on commit dc7bdfa

Please sign in to comment.