mirror of
https://github.com/odoo/documentation.git
synced 2026-01-04 02:36:32 +07:00
[FIX] odoo_theme: fix crash on menu loading introduced with 675f7bc8
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user