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:
parent
ade3401d02
commit
ec75858f7e
@ -115,9 +115,12 @@ const Header = () => {
|
|||||||
if (projectExist) {
|
if (projectExist) {
|
||||||
cacheData("hasReceived", false);
|
cacheData("hasReceived", false);
|
||||||
}
|
}
|
||||||
|
if(!selectedProject){
|
||||||
|
dispatch(setProjectId(projectNames[0]?.id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[fetchData]
|
[fetchData,projectNames,selectedProject]
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user