Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #430 from SELab-2/load-fix
Browse files Browse the repository at this point in the history
chore: fix loading icon on project tile
  • Loading branch information
Mikxox authored May 22, 2022
2 parents 5e276e4 + 1b673cd commit fa51e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/projects/ProjectTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ const ProjectTile: React.FC<ProjectProp> = ({
*/
useEffect(() => {
if (JSON.stringify(projectInput) != JSON.stringify(myProjectBase)) {
setLoading(true);
setMyProjectBase(projectInput as ProjectBase);
} else {
controller2.abort();
Expand Down Expand Up @@ -361,7 +362,6 @@ const ProjectTile: React.FC<ProjectProp> = ({
* myProjectBase gets set to projectInput at the start.
*/
useEffect(() => {
setLoading(true);
controller.abort();
controller = new AbortController();
const signal = controller.signal;
Expand Down

0 comments on commit fa51e10

Please sign in to comment.