Resolves an issue where projects assigned to a user for the first time were not appearing in the global project selection dropdown.

This commit is contained in:
ashutosh.nehete 2025-06-19 11:01:11 +05:30
parent ade3401d02
commit ec75858f7e

View File

@ -115,9 +115,12 @@ const Header = () => {
if (projectExist) {
cacheData("hasReceived", false);
}
if(!selectedProject){
dispatch(setProjectId(projectNames[0]?.id));
}
}
},
[fetchData]
[fetchData,projectNames,selectedProject]
);
useEffect(() => {