diff --git a/src/components/ActiveConfigurationsTable/index.tsx b/src/components/ActiveConfigurationsTable/index.tsx index 0920e17..afdd495 100644 --- a/src/components/ActiveConfigurationsTable/index.tsx +++ b/src/components/ActiveConfigurationsTable/index.tsx @@ -17,6 +17,8 @@ import './active-configurations-table.scss' import dayjs from 'dayjs' import CanEdit from '@components/CanEdit' import { dateFormats } from '@constants/date.ts' +import { routePaths } from '@routes/routePaths.ts' +import { useNavigate, useParams } from 'react-router-dom' const ActiveConfigurationsTable: FC = @@ -24,7 +26,8 @@ const ActiveConfigurationsTable: FC = isActiveTable = false, handleShowConfig, handleShowCompareModal, - data + data, + currentModule = {} }) => { const [editKeyConfig, setEditKeyConfig] = useState('') const [tempEditValues, setTempEditValues] = useState() @@ -32,7 +35,8 @@ const ActiveConfigurationsTable: FC = const [createUpdateConfig] = configApi.useCreateUpdateConfigMutation() const [markConfigAsActive] = configApi.useMarkConfigAsActiveMutation() const [deleteConfig] = configApi.useDeleteConfigMutation() - + const navigate = useNavigate() + const {id: moduleId} = useParams() useEffect(() => { if (inputRefs.current[editKeyConfig]) { @@ -198,9 +202,7 @@ const ActiveConfigurationsTable: FC = {!isActiveTable && diff --git a/src/pages/ConfigurationsPage/index.tsx b/src/pages/ConfigurationsPage/index.tsx index c0c5e78..5d0cb39 100644 --- a/src/pages/ConfigurationsPage/index.tsx +++ b/src/pages/ConfigurationsPage/index.tsx @@ -101,6 +101,7 @@ const Configurations = () => { { @@ -113,6 +114,7 @@ const Configurations = () => { }} /> { setCurrentConfig(config)