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

Commit

Permalink
chore: fix loading icon on project tile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikxox committed May 22, 2022
1 parent 5351d07 commit 1b673cd
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 @@ -320,6 +320,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 @@ -358,7 +359,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 1b673cd

Please sign in to comment.