mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-28 05:26:10 +02:00
Handle missing section
This commit is contained in:
parent
848d1f02b0
commit
c565b8caec
1 changed files with 4 additions and 0 deletions
|
@ -265,6 +265,10 @@ exports.ThemeManager = class ThemeManager {
|
|||
};
|
||||
|
||||
[ 'menus', 'prompts'].forEach(sectionName => {
|
||||
if (!_.isObject(mergedTheme.sectionName)) {
|
||||
return Log.error({sectionName}, 'Merged theme is missing section');
|
||||
}
|
||||
|
||||
Object.keys(mergedTheme[sectionName]).forEach(entryName => {
|
||||
let createdFormSection = false;
|
||||
const mergedThemeMenu = mergedTheme[sectionName][entryName];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue