mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 11:38:27 +02:00
Crash on configuration when theme no longer exists #157
This commit is contained in:
parent
66423068b1
commit
4acbae86e3
1 changed files with 2 additions and 2 deletions
|
@ -174,9 +174,9 @@ exports.getModule = class UserConfigModule extends MenuModule {
|
|||
};
|
||||
}), 'name');
|
||||
|
||||
currentThemeIdIndex = _.findIndex(self.availThemeInfo, function cmp(ti) {
|
||||
currentThemeIdIndex = Math.max(0, _.findIndex(self.availThemeInfo, function cmp(ti) {
|
||||
return ti.themeId === self.client.user.properties.theme_id;
|
||||
});
|
||||
}));
|
||||
|
||||
callback(null);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue