Browse Source

fixing schema version path issue (#2100)

Robert Azizbekyan 3 years ago
parent
commit
7db40577b5

+ 2 - 2
kafka-ui-react-app/src/components/Schemas/Details/Details.tsx

@@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom';
 import {
 import {
   ClusterSubjectParam,
   ClusterSubjectParam,
   clusterSchemaEditPageRelativePath,
   clusterSchemaEditPageRelativePath,
-  clusterSchemaSchemaDiffRelativePath,
+  clusterSchemaSchemaDiffPageRelativePath,
 } from 'lib/paths';
 } from 'lib/paths';
 import ClusterContext from 'components/contexts/ClusterContext';
 import ClusterContext from 'components/contexts/ClusterContext';
 import ConfirmationModal from 'components/common/ConfirmationModal/ConfirmationModal';
 import ConfirmationModal from 'components/common/ConfirmationModal/ConfirmationModal';
@@ -90,7 +90,7 @@ const Details: React.FC = () => {
               buttonSize="M"
               buttonSize="M"
               buttonType="primary"
               buttonType="primary"
               to={{
               to={{
-                pathname: clusterSchemaSchemaDiffRelativePath,
+                pathname: clusterSchemaSchemaDiffPageRelativePath,
                 search: `leftVersion=${versions[0]?.version}&rightVersion=${versions[0]?.version}`,
                 search: `leftVersion=${versions[0]?.version}&rightVersion=${versions[0]?.version}`,
               }}
               }}
             >
             >

+ 2 - 1
kafka-ui-react-app/src/components/Schemas/Schemas.tsx

@@ -3,6 +3,7 @@ import { Route, Routes } from 'react-router-dom';
 import {
 import {
   clusterSchemaEditRelativePath,
   clusterSchemaEditRelativePath,
   clusterSchemaNewRelativePath,
   clusterSchemaNewRelativePath,
+  clusterSchemaSchemaDiffRelativePath,
   RouteParams,
   RouteParams,
 } from 'lib/paths';
 } from 'lib/paths';
 import List from 'components/Schemas/List/List';
 import List from 'components/Schemas/List/List';
@@ -48,7 +49,7 @@ const Schemas: React.FC = () => {
         }
         }
       />
       />
       <Route
       <Route
-        path={clusterSchemaEditRelativePath}
+        path={clusterSchemaSchemaDiffRelativePath}
         element={
         element={
           <BreadcrumbRoute>
           <BreadcrumbRoute>
             <DiffContainer />
             <DiffContainer />