Fix topic edit redirect (#2485)

This commit is contained in:
Shubham Jain 2022-08-25 02:11:22 +05:30 committed by GitHub
parent 0aafd49de0
commit a9c31e6a32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ import { Button } from 'components/common/Button/Button';
import { InputLabel } from 'components/common/Input/InputLabel.styled';
import { FormError } from 'components/common/Input/Input.styled';
import { StyledForm } from 'components/common/Form/Form.styled';
import { clusterTopicsPath } from 'lib/paths';
import { clusterTopicPath } from 'lib/paths';
import { useNavigate } from 'react-router-dom';
import useAppParams from 'lib/hooks/useAppParams';
@ -76,7 +76,7 @@ const TopicForm: React.FC<Props> = ({
const onCancel = () => {
reset();
navigate(clusterTopicsPath(clusterName));
navigate(clusterTopicPath(clusterName, topicName));
};
return (