forked from MapComplete/MapComplete
		
	Chore: small code cleanup
This commit is contained in:
		
							parent
							
								
									5424932f1a
								
							
						
					
					
						commit
						6812ab3890
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -232,10 +232,9 @@ export default class TagRenderingConfig { | ||||||
|                 throw "Tagrendering has a 'mappings'-object, but expected a list (" + context + ")" |                 throw "Tagrendering has a 'mappings'-object, but expected a list (" + context + ")" | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  |             const firstMappingSize: string =   json.mappings.map((m) => (m.icon?.["class"])).find(c => !!c) | ||||||
|             const commonIconSize = |             const commonIconSize = | ||||||
|                 Utils.NoNull( |               firstMappingSize ?? | ||||||
|                     json.mappings.map((m) => (!!m.icon ? m.icon["class"] : undefined)) |  | ||||||
|                 )[0] ?? |  | ||||||
|                 json["#iconsize"] ?? |                 json["#iconsize"] ?? | ||||||
|                 "small" |                 "small" | ||||||
|             this.mappings = json.mappings.map((m, i) => |             this.mappings = json.mappings.map((m, i) => | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue