From 9043cfd49e51c8e22a0a4409de8d15b104e5da50 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Thu, 12 Jun 2025 23:56:36 +0530 Subject: [PATCH] prevent to set first project from project-list at component mount --- src/components/Activities/InfraPlanning.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Activities/InfraPlanning.jsx b/src/components/Activities/InfraPlanning.jsx index 14e9732f..31466774 100644 --- a/src/components/Activities/InfraPlanning.jsx +++ b/src/components/Activities/InfraPlanning.jsx @@ -28,10 +28,10 @@ const InfraPlanning = () => const {projects_Details, loading: project_deatilsLoader, error: project_error,refetch} = useProjectDetails( selectedProject ) const reloadedData = useSelector( ( store ) => store.localVariables.reload ) - useEffect( () => - { - dispatch(setProjectId(projects[0]?.id)) - }, [ projects ] ) + // useEffect( () => + // { + // dispatch(setProjectId(projects[0]?.id)) + // }, [ projects ] ) useEffect( () => {