[Trunk|Admin]: Curator page: Check if curator is an empty object

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56314 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-07-02 10:28:06 +00:00
parent 3abaaba401
commit 29decbb0ee
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ export class CuratorComponent implements OnInit {
this.curatorService.getCurator(this.properties,
this.properties.adminToolsAPIURL + 'curator/' + this.curatorId).subscribe(
curator => {
if (curator) {
if (curator && Object.keys(curator).length > 0) {
this.curator = curator;
this.curator.email = Session.getUserEmail();
if (this.curator.photo && this.curator.photo !== '') {

View File

@ -53,7 +53,7 @@
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
"adminToolsAPIURL" :"http://scoobydoo.di.uoa.gr:8080/uoa-admin-tools/",
"adminToolsAPIURL" :"http://mpagasas.di.uoa.gr:8080/uoa-admin-tools/",
"adminToolsCommunity" :"openaire",
"communityAPI": "https://dev-openaire.d4science.org/openaire/community/",