forked from MapComplete/MapComplete
Split wikidata helper into languages, fixes #893
This commit is contained in:
parent
a839e6e820
commit
b8e5800df3
3 changed files with 173 additions and 150 deletions
|
@ -154,7 +154,7 @@ export default class TagRenderingConfig {
|
|||
}
|
||||
|
||||
|
||||
if (!ValidatedTextField.ForType(this.freeform.key) === undefined) {
|
||||
if (this.freeform.type !== undefined && ValidatedTextField.AvailableTypes().indexOf(this.freeform.type) < 0) {
|
||||
const knownKeys = ValidatedTextField.AvailableTypes().join(", ");
|
||||
throw `Freeform.key ${this.freeform.key} is an invalid type. Known keys are ${knownKeys}`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue