Fix widths

This commit is contained in:
Pieter Vander Vennet 2020-10-10 14:09:12 +02:00
parent b8a1683191
commit 5e220ccead
6 changed files with 33 additions and 62 deletions

View file

@ -200,7 +200,6 @@ export default class State {
);
this.installedThemes = this.osmConnection.preferencesHandler.preferences.map<{ layout: Layout, definition: string }[]>(allPreferences => {
const installedThemes: { layout: Layout, definition: string }[] = [];
if (allPreferences === undefined) {
@ -209,7 +208,7 @@ export default class State {
for (const allPreferencesKey in allPreferences) {
const themename = allPreferencesKey.match(/^mapcomplete-installed-theme-(.*)-combined-length$/);
if (themename && themename[1] !== "") {
const customLayout = State.state.osmConnection.GetLongPreference("installed-theme-" + themename[1]);
const customLayout = self.osmConnection.GetLongPreference("installed-theme-" + themename[1]);
if(customLayout.data === undefined){
console.log("No data defined for ", themename[1]);
continue;