mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 17:15:54 +08:00
fix: do nothing if switch to current app (#4249)
Co-authored-by: langyong <langyong@lixiang.com>
This commit is contained in:
parent
00ce372b71
commit
749b236d3d
@ -73,6 +73,8 @@ const NavSelector = ({ curNav, navs, createText, isApp, onCreate, onLoadmore }:
|
|||||||
navs.map(nav => (
|
navs.map(nav => (
|
||||||
<Menu.Item key={nav.id}>
|
<Menu.Item key={nav.id}>
|
||||||
<div className='flex items-center w-full px-3 py-[6px] text-gray-700 text-[14px] rounded-lg font-normal hover:bg-gray-100 cursor-pointer truncate' onClick={() => {
|
<div className='flex items-center w-full px-3 py-[6px] text-gray-700 text-[14px] rounded-lg font-normal hover:bg-gray-100 cursor-pointer truncate' onClick={() => {
|
||||||
|
if (curNav?.id === nav.id)
|
||||||
|
return
|
||||||
setAppDetail()
|
setAppDetail()
|
||||||
router.push(nav.link)
|
router.push(nav.link)
|
||||||
}} title={nav.name}>
|
}} title={nav.name}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user