From 749b236d3db71f5c8dc7b68cfdb1529d67bc4c83 Mon Sep 17 00:00:00 2001 From: Louie Long Date: Sat, 11 May 2024 08:50:46 +0800 Subject: [PATCH] fix: do nothing if switch to current app (#4249) Co-authored-by: langyong --- web/app/components/header/nav/nav-selector/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/components/header/nav/nav-selector/index.tsx b/web/app/components/header/nav/nav-selector/index.tsx index edb6c3a388..6e36677f0e 100644 --- a/web/app/components/header/nav/nav-selector/index.tsx +++ b/web/app/components/header/nav/nav-selector/index.tsx @@ -73,6 +73,8 @@ const NavSelector = ({ curNav, navs, createText, isApp, onCreate, onLoadmore }: navs.map(nav => (
{ + if (curNav?.id === nav.id) + return setAppDetail() router.push(nav.link) }} title={nav.name}>