prevent to set first project from project-list at component mount
This commit is contained in:
parent
3ed5999f29
commit
9043cfd49e
@ -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( () =>
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user