1
0
Fork 0
mirror of synced 2024-06-08 13:34:45 +12:00

bug fix for handlebars expression, show budibase version in updates panel

This commit is contained in:
Martin McKeaveney 2022-02-17 10:12:35 +01:00
parent ddf75aae04
commit e37e5d137c
3 changed files with 5 additions and 3 deletions

View file

@ -58,7 +58,7 @@
const updateValue = val => {
valid = isValid(readableToRuntimeBinding(bindings, val))
if (valid) {
dispatch("change", value)
dispatch("change", val)
}
}

View file

@ -32,7 +32,7 @@ export const buildOtherEndpoints = API => ({
getBudibaseVersion: async () => {
return await API.get({
url: "/api/dev/version",
})
}).version
},
/**

View file

@ -118,5 +118,7 @@ exports.revert = async ctx => {
}
exports.getBudibaseVersion = async ctx => {
ctx.body = require("../../../package.json").version
ctx.body = {
version: require("../../../package.json").version,
}
}