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 bfaca430da
commit e8d5d54f5d
3 changed files with 5 additions and 3 deletions

View File

@ -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)
} }
} }

View File

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

View File

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