fixes with handling new and query modes

This commit is contained in:
Helmut Merz 2023-03-21 11:14:09 +01:00
parent b72a85ac24
commit b75aa08d7c

View file

@ -74,8 +74,10 @@ function Data(name, action, domain: string): object {
// appdata and component method definitions
function mounted(name: string, meta: any) {
console.log('name: ', name, ', meta: ', meta)
this.data[name] = meta.default || eval(meta.defexpr) || ""
if (meta.defexpr) {
meta.default = eval(meta.defexpr)
}
this.data[name] = meta.default || ""
this.meta[name] = meta
}
@ -126,7 +128,7 @@ function handle(msg) {
if (domain && domain != comp.domain) {
return
}
if (comp != undefined) {
if (comp) {
Object.assign(comp.data, data)
}
}