[FIX] odoo_theme: fix crash on menu loading introduced with 675f7bc8
This commit is contained in:
parent
4c6947da4f
commit
2591ddc6d2
@ -43,7 +43,9 @@
|
||||
lastTocEntry = element;
|
||||
}
|
||||
})
|
||||
deepestTocEntries.push(lastTocEntry); // The last TOC entry is the deepest of its branch
|
||||
if (lastTocEntry) {
|
||||
deepestTocEntries.push(lastTocEntry); // The last TOC entry is the deepest of its branch
|
||||
}
|
||||
deepestTocEntries.forEach(deepestTocEntry => {
|
||||
const childTocEntryList = deepestTocEntry.querySelector('ul');
|
||||
if (childTocEntryList) {
|
||||
|
Loading…
Reference in New Issue
Block a user