Skip to content

Commit

Permalink
fix: redirect url error
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet committed Jun 28, 2024
1 parent aefa74f commit cc3017e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -123,7 +124,7 @@ export const AddConnectionDialog = ({ disabled = [], onCancel, onSubmit }: Props
}}
onChange={(value) => {
if (!value) {
navigate('/connections');
navigate(PATHS.CONNECTIONS());
}
setSelectedValue(value);
}}
Expand Down

0 comments on commit cc3017e

Please sign in to comment.