forked from MapComplete/MapComplete
		
	Robustify morescreen, remove unused var
This commit is contained in:
		
							parent
							
								
									ede3227389
								
							
						
					
					
						commit
						b9e15697f4
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		|  | @ -62,6 +62,10 @@ export default class MoreScreen extends Combine { | |||
|         let officialThemes = AllKnownLayouts.layoutsList | ||||
| 
 | ||||
|         let buttons = officialThemes.map((layout) => { | ||||
|             if(layout === undefined){ | ||||
|                 console.trace("Layout is undefined") | ||||
|                 return undefined | ||||
|             } | ||||
|             const button = MoreScreen.createLinkButton(layout)?.SetClass(buttonClass); | ||||
|             if(layout.id === personal.id){ | ||||
|                 return new VariableUiElement( | ||||
|  |  | |||
|  | @ -98,7 +98,6 @@ class LayerOverviewUtils { | |||
|         } | ||||
| 
 | ||||
|         let themeErrorCount = [] | ||||
|         let missingTranslations = [] | ||||
|         for (const themeFile of themeFiles) { | ||||
|             if (typeof themeFile.language === "string") { | ||||
|                 themeErrorCount.push("The theme " + themeFile.id + " has a string as language. Please use a list of strings") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue