This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v1.0 by this push:
     new b6c85a362 fix: redirect url error (#7680) (#7681)
b6c85a362 is described below

commit b6c85a362009e7196035e60dae985458a98d8b75
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jun 28 20:29:11 2024 +1200

    fix: redirect url error (#7680) (#7681)
    
    Co-authored-by: 青湛 <[email protected]>
---
 .../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);
               }}

Reply via email to