Fix topic edit redirect (#2485)
This commit is contained in:
parent
0aafd49de0
commit
a9c31e6a32
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ import { Button } from 'components/common/Button/Button';
|
||||||
import { InputLabel } from 'components/common/Input/InputLabel.styled';
|
import { InputLabel } from 'components/common/Input/InputLabel.styled';
|
||||||
import { FormError } from 'components/common/Input/Input.styled';
|
import { FormError } from 'components/common/Input/Input.styled';
|
||||||
import { StyledForm } from 'components/common/Form/Form.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 { useNavigate } from 'react-router-dom';
|
||||||
import useAppParams from 'lib/hooks/useAppParams';
|
import useAppParams from 'lib/hooks/useAppParams';
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ const TopicForm: React.FC<Props> = ({
|
||||||
|
|
||||||
const onCancel = () => {
|
const onCancel = () => {
|
||||||
reset();
|
reset();
|
||||||
navigate(clusterTopicsPath(clusterName));
|
navigate(clusterTopicPath(clusterName, topicName));
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Reference in a new issue