1
0
Fork 0
mirror of synced 2024-08-17 19:11:52 +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 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,
}
} }