Studio: first working version

This commit is contained in:
Pieter Vander Vennet 2023-10-17 01:36:22 +02:00
parent 4fe0c41628
commit 632dd6dfb1
8 changed files with 36 additions and 23 deletions

View file

@ -96,13 +96,10 @@
err = path.join(".") + " " + e
}
let startValue = state.getCurrentValueFor(path)
const tags = new UIEventSource<Record<string, string>>({value: startValue ?? ""})
const tags = new UIEventSource<Record<string, string>>({value: startValue})
try {
onDestroy(state.register(path, tags.map(tgs => {
const v = tgs["value"];
if(v !== ""){
console.log("Registering",path,"setting value to", v)
}
if(typeof v !== "string"){
return v
}