Revision 56314
Added by Konstantinos Triantafyllou almost 5 years ago
curator.component.ts | ||
---|---|---|
55 | 55 |
this.curatorService.getCurator(this.properties, |
56 | 56 |
this.properties.adminToolsAPIURL + 'curator/' + this.curatorId).subscribe( |
57 | 57 |
curator => { |
58 |
if (curator) { |
|
58 |
if (curator && Object.keys(curator).length > 0) {
|
|
59 | 59 |
this.curator = curator; |
60 | 60 |
this.curator.email = Session.getUserEmail(); |
61 | 61 |
if (this.curator.photo && this.curator.photo !== '') { |
Also available in: Unified diff
[Trunk|Admin]: Curator page: Check if curator is an empty object