forked from MapComplete/MapComplete
		
	Fix: don't show preset_type special vis if no presets are given
This commit is contained in:
		
							parent
							
								
									dbff953096
								
							
						
					
					
						commit
						cf3b4145ff
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -1996,6 +1996,9 @@ export default class SpecialVisualizations { | |||
|                 ): BaseUIElement { | ||||
|                     const translation = tagSource.map((tags) => { | ||||
|                         const presets = state.layout.getMatchingLayer(tags)?.presets | ||||
|                         if(!presets){ | ||||
|                             return undefined | ||||
|                         } | ||||
|                         const matchingPresets = presets | ||||
|                             .filter((pr) => pr.description !== undefined) | ||||
|                             .filter((pr) => new And(pr.tags).matchesProperties(tags)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue