From 399fcba32c44875e1e5c7dff9a1f0441f36fd934 Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Thu, 8 Aug 2024 10:56:26 +0200 Subject: [PATCH] [FIX] web_responsive: Can't access web using superuser Before this change when trying to access web using superuser the web interface is not charged. By doing this change is all working normally. Steps to reproduce the problem: 1. Log in 2. Go to web/become --- web_responsive/static/src/components/apps_menu/apps_menu.esm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_responsive/static/src/components/apps_menu/apps_menu.esm.js b/web_responsive/static/src/components/apps_menu/apps_menu.esm.js index 200561ab3..b1c3b2f29 100644 --- a/web_responsive/static/src/components/apps_menu/apps_menu.esm.js +++ b/web_responsive/static/src/components/apps_menu/apps_menu.esm.js @@ -31,7 +31,7 @@ patch(WebClient.prototype, { ["is_redirect_home"] ); this.env.services.user.updateContext({ - is_redirect_to_home: is_redirect_home[0].is_redirect_home, + is_redirect_to_home: is_redirect_home[0]?.is_redirect_home, }); }); this.redirect = false;