forked from MapComplete/MapComplete
Insulate tag changes
This commit is contained in:
parent
2e5e242e91
commit
65486b6953
1 changed files with 3 additions and 2 deletions
|
@ -156,9 +156,10 @@ export default class SpecialVisualizations {
|
||||||
],
|
],
|
||||||
constr: (state: State, tagSource: UIEventSource<any>, args: string[]) =>{
|
constr: (state: State, tagSource: UIEventSource<any>, args: string[]) =>{
|
||||||
return new VariableUiElement(
|
return new VariableUiElement(
|
||||||
tagSource.map(tags => {
|
tagSource
|
||||||
|
.map(tags => tags[args[0]])
|
||||||
|
.map(listStr => {
|
||||||
try{
|
try{
|
||||||
const listStr = tags[args[0]]
|
|
||||||
if("" === listStr ?? ""){
|
if("" === listStr ?? ""){
|
||||||
return "Nothing defined";
|
return "Nothing defined";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue