Browse Source

fix getting the current version

master
Maurits Lourens 5 years ago
parent
commit
028cdfcf9a
  1. 8
      packages/frontend-core/src/api/other.js

8
packages/frontend-core/src/api/other.js

@ -30,9 +30,11 @@ export const buildOtherEndpoints = API => ({
* Gets the version of the installed Budibase environment. * Gets the version of the installed Budibase environment.
*/ */
getBudibaseVersion: async () => { getBudibaseVersion: async () => {
return await API.get({ return (
url: "/api/dev/version", await API.get({
}).version url: "/api/dev/version",
})
).version
}, },
/** /**

Loading…
Cancel
Save