[Trunk | Connect]: subjects.component.ts: When error in getting subjects occurs, set loading to false.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@59481 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2020-09-28 10:05:07 +00:00
parent 90392fc79a
commit b0509c2399
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ export class SubjectsComponent {
this.subjects = community.subjects;
this.showLoading = false;
HelperFunctions.scroll();
}));
},
error => {
console.error("Subjects Component: Error getting subjects for community with id: " + this.communityId, error);
this.showLoading = false;
} ));
}));
}