You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2023/11/09 01:54:37 UTC
(incubator-devlake) branch fix-exception-redirect created (now 5a1835da1)
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a change to branch fix-exception-redirect
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at 5a1835da1 fix(config-ui): exception redirect on menu
This branch includes the following new commits:
new 5a1835da1 fix(config-ui): exception redirect on menu
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: fix(config-ui): exception redirect on menu
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch fix-exception-redirect
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 5a1835da1c921c075eee4f8b79dcb181267ef48c
Author: mintsweet <0x...@gmail.com>
AuthorDate: Thu Nov 9 14:54:24 2023 +1300
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 2d8e1d2e7..d1b2bbc39 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 {