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 28137d78d70..a82659b4bda 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); }}