From f1b8d9b8d586f0ae5488d0b7445649ac12aa5e0f Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:16:05 +0200 Subject: [PATCH] fix: project overview refactor flag (#5110) --- frontend/src/component/project/Project/ProjectOverview.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/project/Project/ProjectOverview.tsx b/frontend/src/component/project/Project/ProjectOverview.tsx index 11f07e532e..804f7cb1a8 100644 --- a/frontend/src/component/project/Project/ProjectOverview.tsx +++ b/frontend/src/component/project/Project/ProjectOverview.tsx @@ -11,6 +11,7 @@ import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; import { useLastViewedProject } from 'hooks/useLastViewedProject'; import { ProjectStats } from './ProjectStats/ProjectStats'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; +import { useUiFlag } from 'hooks/useUiFlag'; const refreshInterval = 15 * 1000; @@ -43,6 +44,7 @@ const ProjectOverview = () => { project; usePageTitle(`Project overview – ${projectName}`); const { setLastViewed } = useLastViewedProject(); + const featureSwitchRefactor = useUiFlag('featureSwitchRefactor'); useEffect(() => { setLastViewed(projectId); @@ -62,7 +64,7 @@ const ProjectOverview = () => { (