From b40d48258d635cf3fe851951b3248329ba275413 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Tue, 31 Aug 2021 11:33:38 +0100 Subject: [PATCH] Sidemenu: Fix logout button (#38747) --- .../components/sidemenu/DropDownChild.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/public/app/core/components/sidemenu/DropDownChild.tsx b/public/app/core/components/sidemenu/DropDownChild.tsx index 9935f6efadd..4f0f2f903cf 100644 --- a/public/app/core/components/sidemenu/DropDownChild.tsx +++ b/public/app/core/components/sidemenu/DropDownChild.tsx @@ -26,15 +26,16 @@ const DropDownChild = ({ isDivider = false, icon, onClick, target, text, url }: let anchor = {linkContent}; if (url) { - anchor = url.startsWith('/') ? ( - - {linkContent} - - ) : ( - - {linkContent} - - ); + anchor = + !target && url.startsWith('/') ? ( + + {linkContent} + + ) : ( + + {linkContent} + + ); } return isDivider ?
  • :
  • {anchor}
  • ;