From 5a1835da1c921c075eee4f8b79dcb181267ef48c Mon Sep 17 00:00:00 2001 From: mintsweet <0x1304570@gmail.com> Date: Thu, 9 Nov 2023 14:54:24 +1300 Subject: [PATCH] fix(config-ui): exception redirect on menu --- config-ui/src/routes/layout/layout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config-ui/src/routes/layout/layout.tsx b/config-ui/src/routes/layout/layout.tsx index 2d8e1d2e7eb..d1b2bbc3943 100644 --- a/config-ui/src/routes/layout/layout.tsx +++ b/config-ui/src/routes/layout/layout.tsx @@ -60,6 +60,10 @@ export const Layout = () => { } const handlePushPath = (it: MenuItemType) => { + if (!it.path) { + return; + } + if (!it.target) { navigate(it.path); } else {