From 751f522d6291f1d9e86b93a20ed3e64dfbca974d Mon Sep 17 00:00:00 2001 From: Younn Olivier Date: Fri, 11 Feb 2022 09:30:20 +0100 Subject: [PATCH] [FIX] web: fix NavBar currentAppSections getter patch After OWL next was merged, an error popped up while patching the Navbar currentAppSections getter, coming from the Enterprise NavBar render. A setter was added on the Navbar component to allow for the patch. See merge commit for more information. task-2687506 --- addons/web/static/src/webclient/navbar/navbar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web/static/src/webclient/navbar/navbar.js b/addons/web/static/src/webclient/navbar/navbar.js index 81bab76d696..00c806d40ef 100644 --- a/addons/web/static/src/webclient/navbar/navbar.js +++ b/addons/web/static/src/webclient/navbar/navbar.js @@ -84,6 +84,10 @@ export class NavBar extends Component { ); } + // This dummy setter is only here to prevent conflicts between the + // Enterprise NavBar extension and the Website NavBar patch. + set currentAppSections(_) {} + get systrayItems() { return systrayRegistry .getEntries()