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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue