[ADF-1006] fix 'isEmpty' issue and code cleanup (#2053)

* fix 'isEmpty' issue and code cleanup

* Update tsconfig.json
This commit is contained in:
Denys Vuika
2017-07-07 09:26:44 +01:00
committed by Eugenio Romano
parent 29ca8b5c5e
commit 012d62eb55
6 changed files with 43 additions and 14 deletions

View File

@@ -167,7 +167,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
constructor(private documentListService: DocumentListService,
private ngZone: NgZone,
private translateService: AlfrescoTranslationService,
translateService: AlfrescoTranslationService,
private el: ElementRef) {
if (translateService) {
@@ -263,7 +263,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
}
isEmpty() {
return this.data.getRows().length === 0;
return !this.data || this.data.getRows().length === 0;
}
isPaginationEnabled() {