forked from MapComplete/MapComplete
Fix: multianswer would not accept last option
This commit is contained in:
parent
138b2ada2f
commit
6f5c71ed5a
2 changed files with 6 additions and 2 deletions
|
@ -680,7 +680,11 @@ export default class TagRenderingConfig {
|
|||
])
|
||||
)
|
||||
}
|
||||
return TagUtils.FlattenMultiAnswer([...selectedMappings, ...unselectedMappings])
|
||||
const and = TagUtils.FlattenMultiAnswer([...selectedMappings, ...unselectedMappings])
|
||||
if(and.and.length === 0){
|
||||
return undefined
|
||||
}
|
||||
return and
|
||||
} else {
|
||||
// Is at least one mapping shown in the answer?
|
||||
const someMappingIsShown = this.mappings.some(m => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue