1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Merge pull request #4621 from mslourens/show_current_version

fix getting the current version
This commit is contained in:
Martin McKeaveney 2022-03-06 21:57:47 +01:00 committed by GitHub
commit 65d55e13e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
},
/**