From c3cd8ac3be0e4b454eb2b5d1d79e10ae34994e2d Mon Sep 17 00:00:00 2001 From: AlexisSouquiere Date: Tue, 4 Jun 2024 15:24:25 +0200 Subject: [PATCH] Fix undefined navigate on TopicGroups.jsx --- client/src/containers/Topic/Topic/TopicGroups/TopicGroups.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/containers/Topic/Topic/TopicGroups/TopicGroups.jsx b/client/src/containers/Topic/Topic/TopicGroups/TopicGroups.jsx index a3b3d78b8..43ddc00d8 100644 --- a/client/src/containers/Topic/Topic/TopicGroups/TopicGroups.jsx +++ b/client/src/containers/Topic/Topic/TopicGroups/TopicGroups.jsx @@ -4,6 +4,7 @@ import { uriTopicsGroups } from '../../../../utils/endpoints'; import constants from '../../../../utils/constants'; import Root from '../../../../components/Root'; import { Link } from 'react-router-dom'; +import {withRouter} from "../../../../utils/withRouter.jsx"; class TopicGroups extends Root { state = { @@ -145,4 +146,4 @@ class TopicGroups extends Root { ); } } -export default TopicGroups; +export default withRouter(TopicGroups);