Skip to content

Commit b638923

Browse files
views: fix jerky refresh behaviour in list view
Signed-off-by: Rohit Yadav <[email protected]>
1 parent c5611be commit b638923

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/views/AutogenView.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,17 @@ export default {
313313
},
314314
methods: {
315315
fetchData () {
316-
this.routeName = this.$route.name
316+
if (this.routeName !== this.$route.name) {
317+
this.routeName = this.$route.name
318+
this.items = []
319+
}
317320
if (!this.routeName) {
318321
this.routeName = this.$route.matched[this.$route.matched.length - 1].parent.name
319322
}
320323
this.apiName = ''
321324
this.actions = []
322325
this.columns = []
323326
this.columnKeys = []
324-
this.items = []
325327
this.treeData = []
326328
this.treeSelected = {}
327329
var params = { listall: true }

0 commit comments

Comments
 (0)