forked from MapComplete/MapComplete
		
	More validation and fixes
This commit is contained in:
		
							parent
							
								
									f10e7f008f
								
							
						
					
					
						commit
						4766f8bbde
					
				
					 13 changed files with 192 additions and 207 deletions
				
			
		|  | @ -90,6 +90,9 @@ export default class TagRenderingConfig { | |||
|         this.multiAnswer = json.multiAnswer ?? false | ||||
|         if (json.mappings) { | ||||
| 
 | ||||
|             if(!Array.isArray(json.mappings)){ | ||||
|                 throw "Tagrendering has a 'mappings'-object, but expected a list ("+context+")" | ||||
|             } | ||||
| 
 | ||||
|             this.mappings = json.mappings.map((mapping, i) => { | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue