Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Websites
membership.eclipse.org
Commits
9f141d4c
Commit
9f141d4c
authored
Jan 17, 2022
by
Zhou Fang
Browse files
Fixed loading spinner logic issue
parent
45b3bbcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/www/src/components/Portal/Dashboard/DashboardProjectsAndWG/DashboardProjects.tsx
View file @
9f141d4c
...
...
@@ -28,12 +28,13 @@ export default function DashboardProjects({ setSelectedItemArray, setOpen }: Das
}
=
useContext
(
PortalContext
);
useEffect
(()
=>
{
if
(
!
orgId
)
{
return
;
}
if
(
yourProjectsData
!==
null
||
interestedProjectsData
!==
null
||
allYourProjectsData
!==
null
)
{
if
(
yourProjectsData
!==
null
&&
allYourProjectsData
!==
null
)
{
setIsFetchingYourProjects
(
false
);
}
if
(
interestedProjectsData
!==
null
)
{
setIsFetchingInterestedProjects
(
false
);
}
if
(
!
orgId
||
yourProjectsData
!==
null
||
interestedProjectsData
!==
null
||
allYourProjectsData
!==
null
)
{
return
;
}
...
...
src/main/www/src/components/Portal/Dashboard/DashboardProjectsAndWG/DashboardWGs.tsx
View file @
9f141d4c
...
...
@@ -29,9 +29,13 @@ export default function DashboardWGs({ setSelectedItemArray, setOpen }: Dashboar
}
=
useContext
(
PortalContext
);
useEffect
(()
=>
{
if
(
orgInfo
===
null
||
orgId
===
0
||
allYourWGData
!==
null
||
interestedWGData
!==
null
||
yourWGData
!==
null
)
{
if
(
allYourWGData
!==
null
&&
yourWGData
!==
null
)
{
setIsFetchingYourWGs
(
false
);
}
if
(
interestedWGData
!==
null
)
{
setIsFetchingInterestedWGs
(
false
);
}
if
(
orgInfo
===
null
||
!
orgId
||
allYourWGData
!==
null
||
interestedWGData
!==
null
||
yourWGData
!==
null
)
{
return
;
}
// Loop through the array using the id to get related wg names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment