forked from MapComplete/MapComplete
Studio: more finetuning, first version working
This commit is contained in:
parent
c4d4a57a08
commit
ac1e7c7f06
39 changed files with 2971 additions and 7187 deletions
|
@ -100,6 +100,7 @@
|
|||
try {
|
||||
onDestroy(state.register(path, tags.map(tgs => {
|
||||
const v = tgs["value"];
|
||||
console.log("Registering",path,"setting value to", v)
|
||||
if(typeof v !== "string"){
|
||||
return v
|
||||
}
|
||||
|
@ -116,6 +117,9 @@
|
|||
}
|
||||
}
|
||||
if (schema.type === "number") {
|
||||
if(v === ""){
|
||||
return undefined
|
||||
}
|
||||
return Number(v)
|
||||
}
|
||||
if (isTranslation) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue