瀏覽代碼

Fix topic edit redirect (#2485)

Shubham Jain 2 年之前
父節點
當前提交
a9c31e6a32
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kafka-ui-react-app/src/components/Topics/shared/Form/TopicForm.tsx

+ 2 - 2
kafka-ui-react-app/src/components/Topics/shared/Form/TopicForm.tsx

@@ -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 (