diff --git a/web/app/components/header/nav/index.tsx b/web/app/components/header/nav/index.tsx index 3dfb77ca6a..d9739192e3 100644 --- a/web/app/components/header/nav/index.tsx +++ b/web/app/components/header/nav/index.tsx @@ -52,7 +52,12 @@ const Nav = ({ `}>
setAppDetail()} + onClick={(e) => { + // Don't clear state if opening in new tab/window + if (e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0) + return + setAppDetail() + }} className={classNames( 'flex h-7 cursor-pointer items-center rounded-[10px] px-2.5', isActivated ? 'text-components-main-nav-nav-button-text-active' : 'text-components-main-nav-nav-button-text',