Skip to content

Commit 6c4fdec

Browse files
shwstppryadvr
authored andcommitted
view: reset listview count on list API call (#271)
Fixes #258 Reset items count for listview while calling a list API to prevent wrong pagination on empty list in response. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent ac2e4f2 commit 6c4fdec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎ui/src/views/AutogenView.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ export default {
457457
break
458458
}
459459
}
460+
this.itemCount = 0
460461
for (const key in json[responseName]) {
461462
if (key === 'count') {
462463
this.itemCount = json[responseName].count

0 commit comments

Comments
 (0)