Browse Source
Merge pull request #4621 from mslourens/show_current_version
fix getting the current version
pull/4838/head
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
3 deletions
-
packages/frontend-core/src/api/other.js
|
|
|
@ -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 |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|