Skip to content

Commit

Permalink
fix getting the current version
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurits Lourens committed Feb 22, 2022
1 parent 5862fc2 commit 028cdfc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/frontend-core/src/api/other.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ export const buildOtherEndpoints = API => ({
* Gets the version of the installed Budibase environment.
*/
getBudibaseVersion: async () => {
return await API.get({
url: "/api/dev/version",
}).version
return (
await API.get({
url: "/api/dev/version",
})
).version
},

/**
Expand Down

0 comments on commit 028cdfc

Please sign in to comment.