forked from MapComplete/MapComplete
Add better relation support
This commit is contained in:
parent
7b47af8978
commit
12afdcab75
18 changed files with 2637 additions and 2386 deletions
|
@ -46,7 +46,7 @@ export default class TagRenderingAnswer extends UIElement {
|
|||
if (this._configuration.multiAnswer) {
|
||||
|
||||
let freeformKeyUsed = this._configuration.freeform?.key === undefined; // If it is undefined, it is "used" already, or at least we don't have to check for it anymore
|
||||
const applicableThens: Translation[] = Utils.NoNull(this._configuration.mappings.map(mapping => {
|
||||
const applicableThens: Translation[] = Utils.NoNull(this._configuration.mappings?.map(mapping => {
|
||||
if (mapping.if === undefined) {
|
||||
return mapping.then;
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ export default class TagRenderingAnswer extends UIElement {
|
|||
return mapping.then;
|
||||
}
|
||||
return undefined;
|
||||
}))
|
||||
}) ?? [])
|
||||
|
||||
if (!freeformKeyUsed
|
||||
&& tags[this._configuration.freeform.key] !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue