Skip to content

Commit 3a4094a

Browse files
authored
Merge pull request #459 from topcoderinc/pagination-fix
fixed pagination issue of 265
2 parents 27f6f3c + 61db140 commit 3a4094a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/components/data-viewer/data-viewer.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export class DataViewerComponent implements OnInit, OnChanges {
214214
});
215215
} else {
216216
this.showPagination = true;
217+
this.page.totalSize = this.setCachedData.length;
217218
this.data = this.setCachedData.slice(start, end);
218219
}
219220
} else if (type === 'hash') {
@@ -236,6 +237,7 @@ export class DataViewerComponent implements OnInit, OnChanges {
236237
);
237238
} else {
238239
this.showPagination = true;
240+
this.page.totalSize = this.hashCachedData.length;
239241
this.data = this.hashCachedData.slice(start, end);
240242
}
241243
} else if (type === 'string') {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy