forked from MapComplete/MapComplete
		
	Add binoculars theme, auto reformat everything
This commit is contained in:
		
							parent
							
								
									38dea806c5
								
							
						
					
					
						commit
						78d6482c88
					
				
					 586 changed files with 115573 additions and 111842 deletions
				
			
		|  | @ -11,14 +11,14 @@ export default class FilterConfig { | |||
|     }[]; | ||||
| 
 | ||||
|     constructor(json: FilterConfigJson, context: string) { | ||||
|         if(json.options === undefined){ | ||||
|         if (json.options === undefined) { | ||||
|             throw `A filter without options was given at ${context}` | ||||
|         } | ||||
| 
 | ||||
|         if(json.options.map === undefined){ | ||||
|         if (json.options.map === undefined) { | ||||
|             throw `A filter was given where the options aren't a list at ${context}` | ||||
|         } | ||||
|          | ||||
| 
 | ||||
|         this.options = json.options.map((option, i) => { | ||||
|             const question = Translations.T( | ||||
|                 option.question, | ||||
|  | @ -28,7 +28,7 @@ export default class FilterConfig { | |||
|                 option.osmTags ?? {and: []}, | ||||
|                 `${context}.options-[${i}].osmTags` | ||||
|             ); | ||||
|             if(question === undefined){ | ||||
|             if (question === undefined) { | ||||
|                 throw `Invalid filter: no question given at ${context}[${i}]` | ||||
|             } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue