Skip to content

Commit 0bb05f7

Browse files
authored
ui: don't skip if dataview has multiple items in response (#7947)
This would fix the case of multiple items return in API response for a resource such as a template or ISO in case of multi-zone env. Signed-off-by: Rohit Yadav <[email protected]>
1 parent 57c61fb commit 0bb05f7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ui/src/views/AutogenView.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -942,10 +942,6 @@ export default {
942942
console.log('DEBUG - Discarding API response as its `id` does not match the uuid on the browser path')
943943
return
944944
}
945-
if (this.dataView && apiItemCount > 1) {
946-
console.log('DEBUG - Discarding API response as got more than one item in data view', this.$route.params, this.items)
947-
return
948-
}
949945
950946
this.items = json[responseName][objectName]
951947
if (!this.items || this.items.length === 0) {

0 commit comments

Comments
 (0)