This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 2d9a15245 fix: redirect url error (#7680)
2d9a15245 is described below
commit 2d9a15245a73f0a3014046eed201ebb01afb8b3a
Author: 青湛 <[email protected]>
AuthorDate: Fri Jun 28 20:28:42 2024 +1200
fix: redirect url error (#7680)
---
.../routes/blueprint/detail/components/add-connection-dialog/index.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
b/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
index 28137d78d..a82659b4b 100644
---
a/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
+++
b/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
@@ -22,6 +22,7 @@ import { PlusOutlined } from '@ant-design/icons';
import { Modal, Select, Space, Button } from 'antd';
import styled from 'styled-components';
+import { PATHS } from '@/config';
import { Block } from '@/components';
import { selectAllConnections } from '@/features';
import { useAppSelector } from '@/hooks';
@@ -123,7 +124,7 @@ export const AddConnectionDialog = ({ disabled = [],
onCancel, onSubmit }: Props
}}
onChange={(value) => {
if (!value) {
- navigate('/connections');
+ navigate(PATHS.CONNECTIONS());
}
setSelectedValue(value);
}}