forked from MapComplete/MapComplete
		
	Fix length field
This commit is contained in:
		
							parent
							
								
									9d6fe155e2
								
							
						
					
					
						commit
						ab4fe9e7ae
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -109,7 +109,11 @@ export default class TagRenderingConfig { | |||
|             if (json.freeform.addExtraTags !== undefined && json.freeform.addExtraTags.map === undefined) { | ||||
|                 throw `Freeform.addExtraTags should be a list of strings - not a single string (at ${context})` | ||||
|             } | ||||
|            const type = json.freeform.type ?? "string" | ||||
|             const type = json.freeform.type ?? "string" | ||||
|              | ||||
|             if(ValidatedTextField.AvailableTypes().indexOf(type ) < 0){ | ||||
|                 throw "At "+context+".freeform.type is an unknown type: "+type+"; try one of "+ValidatedTextField.AvailableTypes().join(", ") | ||||
|             } | ||||
| 
 | ||||
|             let placeholder: Translation = Translations.T(json.freeform.placeholder) | ||||
|             if (placeholder === undefined) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue