mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1006] fix 'isEmpty' issue and code cleanup (#2053)
* fix 'isEmpty' issue and code cleanup * Update tsconfig.json
This commit is contained in:
committed by
Eugenio Romano
parent
29ca8b5c5e
commit
012d62eb55
@@ -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() {
|
||||
|
Reference in New Issue
Block a user