@@ -207,15 +207,16 @@ export class DataViewerComponent implements OnInit, OnChanges {
207
207
this . loadingPageData = true ;
208
208
this . redisService . call ( instanceId , [ [ 'SMEMBERS' , key ] ] ) . subscribe ( ret => {
209
209
this . setCachedData = injectValuesToArray ( ret [ 0 ] ) ;
210
+ this . page . totalSize = this . setCachedData . length ;
210
211
this . data = this . setCachedData . slice ( start , end ) ;
211
212
this . loadingPageData = false ;
212
213
this . showPagination = true ;
213
214
} ) ;
214
215
} else {
215
216
this . showPagination = true ;
217
+ this . page . totalSize = this . setCachedData . length ;
216
218
this . data = this . setCachedData . slice ( start , end ) ;
217
219
}
218
- this . page . totalSize = this . setCachedData . length ;
219
220
} else if ( type === 'hash' ) {
220
221
if ( ! this . hashCachedData ) {
221
222
this . loadingPageData = true ;
@@ -228,16 +229,17 @@ export class DataViewerComponent implements OnInit, OnChanges {
228
229
} ) ;
229
230
i += 2 ;
230
231
}
232
+ this . page . totalSize = this . hashCachedData . length ;
231
233
this . data = this . hashCachedData . slice ( start , end ) ;
232
234
this . loadingPageData = false ;
233
235
this . showPagination = true ;
234
236
}
235
237
) ;
236
238
} else {
237
239
this . showPagination = true ;
240
+ this . page . totalSize = this . hashCachedData . length ;
238
241
this . data = this . hashCachedData . slice ( start , end ) ;
239
242
}
240
- this . page . totalSize = this . hashCachedData . length ;
241
243
} else if ( type === 'string' ) {
242
244
this . stringValue = this . pageData . item . value ;
243
245
}
0 commit comments