Skip to content

Commit fe077af

Browse files
committed
fixes issue 374
1 parent 3a4094a commit fe077af

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ export class DataViewerComponent implements OnInit, OnChanges {
208208
this.redisService.call(instanceId, [['SMEMBERS', key]]).subscribe(ret => {
209209
this.setCachedData = injectValuesToArray(ret[0]);
210210
this.page.totalSize = this.setCachedData.length;
211-
this.data = this.setCachedData.slice(start, end);
211+
this.data = this.setCachedData.slice(start, end + 1);
212212
this.loadingPageData = false;
213213
this.showPagination = true;
214214
});
215215
} else {
216216
this.showPagination = true;
217217
this.page.totalSize = this.setCachedData.length;
218-
this.data = this.setCachedData.slice(start, end);
218+
this.data = this.setCachedData.slice(start, end + 1);
219219
}
220220
} else if (type === 'hash') {
221221
if (!this.hashCachedData) {
@@ -230,15 +230,15 @@ export class DataViewerComponent implements OnInit, OnChanges {
230230
i += 2;
231231
}
232232
this.page.totalSize = this.hashCachedData.length;
233-
this.data = this.hashCachedData.slice(start, end);
233+
this.data = this.hashCachedData.slice(start, end + 1);
234234
this.loadingPageData = false;
235235
this.showPagination = true;
236236
}
237237
);
238238
} else {
239239
this.showPagination = true;
240240
this.page.totalSize = this.hashCachedData.length;
241-
this.data = this.hashCachedData.slice(start, end);
241+
this.data = this.hashCachedData.slice(start, end + 1);
242242
}
243243
} else if (type === 'string') {
244244
this.stringValue = this.pageData.item.value;

src/app/components/instance-root-panel/instance-root-panel.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class InstanceRootPanelComponent implements OnInit {
4444
*/
4545
getData() {
4646
const start = this.page.pageIndex * this.page.pageSize;
47-
return this.pageData.item.slice(start, start + this.page.pageSize - 1);
47+
return this.pageData.item.slice(start, start + this.page.pageSize);
4848
}
4949

5050
/**

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