forked from MapComplete/MapComplete
Themes: allow to have a non-number type together with a unit
This commit is contained in:
parent
b4163897e8
commit
4ccfe3efe4
5 changed files with 93 additions and 54 deletions
|
|
@ -91,11 +91,6 @@
|
|||
return
|
||||
}
|
||||
|
||||
if (unit !== undefined && isNaN(Number(v))) {
|
||||
value.setData(undefined)
|
||||
return
|
||||
}
|
||||
|
||||
feedback?.setData(undefined)
|
||||
if (selectedUnit.data) {
|
||||
value.setData(unit.toOsm(v, selectedUnit.data))
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@
|
|||
checkedMappings,
|
||||
tags.data
|
||||
)
|
||||
console.log("Constructing change spec from", {freeform: $freeformInput, selectedMapping, checkedMappings, currentTags: tags.data}, " --> ", selectedTags)
|
||||
} catch (e) {
|
||||
console.error("Could not calculate changeSpecification:", e)
|
||||
selectedTags = undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue