From c08e954717756edb6871baaca7629a2d42554a3f Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Wed, 15 Jul 2020 15:38:11 +0530 Subject: [PATCH] autogenview: fix showunique case for templates/isos and filter Signed-off-by: Rohit Yadav --- ui/src/views/AutogenView.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index ce75d0cbe49..fc80e420cdb 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -45,7 +45,7 @@ @@ -534,6 +534,10 @@ export default { }) } + if (['listTemplates', 'listIsos'].includes(this.apiName) && this.dataView) { + delete params.showunique + } + this.loading = true if (this.$route.params && this.$route.params.id) { params.id = this.$route.params.id @@ -571,10 +575,6 @@ export default { this.items = [] } - if (['listTemplates', 'listIsos'].includes(this.apiName) && this.items.length > 1) { - this.items = [...new Map(this.items.map(x => [x.id, x])).values()] - } - for (let idx = 0; idx < this.items.length; idx++) { this.items[idx].key = idx for (const key in customRender) {