From 6c4fdec2acede1c5dfbbf9e5bd0cfcbc13dff409 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 31 Mar 2020 16:45:15 +0530 Subject: [PATCH] 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 Signed-off-by: Rohit Yadav --- ui/src/views/AutogenView.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index dca17e597c5..47b10af0430 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -457,6 +457,7 @@ export default { break } } + this.itemCount = 0 for (const key in json[responseName]) { if (key === 'count') { this.itemCount = json[responseName].count