bug fix for handlebars expression, show budibase version in updates panel
This commit is contained in:
parent
bfaca430da
commit
e8d5d54f5d
3 changed files with 5 additions and 3 deletions
|
@ -58,7 +58,7 @@
|
||||||
const updateValue = val => {
|
const updateValue = val => {
|
||||||
valid = isValid(readableToRuntimeBinding(bindings, val))
|
valid = isValid(readableToRuntimeBinding(bindings, val))
|
||||||
if (valid) {
|
if (valid) {
|
||||||
dispatch("change", value)
|
dispatch("change", val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ export const buildOtherEndpoints = API => ({
|
||||||
getBudibaseVersion: async () => {
|
getBudibaseVersion: async () => {
|
||||||
return await API.get({
|
return await API.get({
|
||||||
url: "/api/dev/version",
|
url: "/api/dev/version",
|
||||||
})
|
}).version
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -118,5 +118,7 @@ exports.revert = async ctx => {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.getBudibaseVersion = async ctx => {
|
exports.getBudibaseVersion = async ctx => {
|
||||||
ctx.body = require("../../../package.json").version
|
ctx.body = {
|
||||||
|
version: require("../../../package.json").version,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue