Chnages in Header.js wihile user is assigned to single project.
This commit is contained in:
parent
9b7d808f58
commit
248f14b8d2
@ -33,10 +33,11 @@ const Header = () => {
|
||||
/^\/dashboard$/.test(location.pathname) || /^\/$/.test(location.pathname);
|
||||
|
||||
// Define the specific project status IDs you want to filter by
|
||||
// Changed to explicitly include only 'Active', 'On Hold', 'In Progress'
|
||||
const allowedProjectStatusIds = [
|
||||
"603e994b-a27f-4e5d-a251-f3d69b0498ba", // On Hold
|
||||
"cdad86aa-8a56-4ff4-b633-9c629057dfef", // In Progress
|
||||
"ef1c356e-0fe0-42df-a5d3-8daee355492d", // Inactive
|
||||
"ef1c356e-0fe0-42df-a5d3-8daee355492d", // Inactive - Removed as per requirement
|
||||
"b74da4c2-d07e-46f2-9919-e75e49b12731", // Active
|
||||
];
|
||||
|
||||
@ -133,7 +134,7 @@ const Header = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
projectNames && // Use the original projectNames for initial setting to ensure all are considered for initial state if needed
|
||||
projectNames &&
|
||||
projectNames.length > 0 &&
|
||||
selectedProject === undefined &&
|
||||
!getCachedData("hasReceived")
|
||||
|
Loading…
x
Reference in New Issue
Block a user