add support for paginated properties on dspace objects

This commit is contained in:
Art Lowel
2018-10-24 13:03:03 +02:00
parent 8c124f227d
commit c1eab402e8
6 changed files with 1535 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Subscription } from 'rxjs/Subscription';
import { hasValue } from '../empty.util';
@Component({
selector: 'ds-loading',
@@ -28,7 +29,7 @@ export class LoadingComponent implements OnDestroy, OnInit {
}
ngOnDestroy() {
if (this.subscription !== undefined) {
if (hasValue(this.subscription)) {
this.subscription.unsubscribe();
}
}