@arsedizioni/ars-utils 21.0.15 → 21.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2661,6 +2661,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
|
|
|
2661
2661
|
if (newSearch) {
|
|
2662
2662
|
newParams.first = 0;
|
|
2663
2663
|
}
|
|
2664
|
+
console.log("-->" + newParams.first);
|
|
2664
2665
|
// Apply facets
|
|
2665
2666
|
if (this.snapshot.facets?.fromDate) {
|
|
2666
2667
|
newParams.fromDate = this.snapshot.facets?.fromDate;
|
|
@@ -2746,7 +2747,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
|
|
|
2746
2747
|
* @param e : the MatPaginator PageEvent data
|
|
2747
2748
|
*/
|
|
2748
2749
|
fetchMore(e) {
|
|
2749
|
-
let first = e.pageIndex * this.filterParams.count;
|
|
2750
|
+
let first = e.pageIndex * (this.filterParams.count ?? 15);
|
|
2750
2751
|
this.filterParams.first = first;
|
|
2751
2752
|
this.fetch();
|
|
2752
2753
|
}
|