From 05149feb00abffedcbe61b9efb3582d3721f95b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Fri, 29 Nov 2024 12:19:58 +0100 Subject: [PATCH] Do not mount the command menu when the user is logged out (#8808) Fixes two bugs: - The command menu contains hooks which were trying to execute queries even when the user was logged out - The command menu could be opened with the command + K shortcut even when the user was logged out --- .../layout/page/components/DefaultLayout.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx b/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx index d815d600e..f739decb3 100644 --- a/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx +++ b/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx @@ -88,19 +88,23 @@ export const DefaultLayout = () => { `} /> - - - - {isWorkflowEnabled && } - - - - - + {!showAuthModal && ( + <> + + + + {isWorkflowEnabled && } + + + + + + + )}