mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2406] [Document Picker] Unnecessary extra request is made on Load more click (#3019)
* [ADF-2406] [Document Picker] Unnecessary extra request is made on Load more click fixed bug * [ADF-2406] refactored code * [ADF-2406] added tests
This commit is contained in:
@@ -577,8 +577,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
||||
private isSkipCountChanged(changePage: SimpleChanges) {
|
||||
return changePage.skipCount &&
|
||||
!changePage.skipCount.isFirstChange() &&
|
||||
changePage.skipCount.currentValue !== null &&
|
||||
changePage.skipCount.currentValue !== undefined &&
|
||||
changePage.skipCount.currentValue &&
|
||||
changePage.skipCount.currentValue !== changePage.skipCount.previousValue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user