This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 0bb05f7871a ui: don't skip if dataview has multiple items in response 
(#7947)
0bb05f7871a is described below

commit 0bb05f7871a263579c87a01c824b5942d620d068
Author: Rohit Yadav <[email protected]>
AuthorDate: Wed Sep 6 20:11:41 2023 +0530

    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]>
---
 ui/src/views/AutogenView.vue | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue
index ab485c46b48..acb6fd6e89c 100644
--- a/ui/src/views/AutogenView.vue
+++ b/ui/src/views/AutogenView.vue
@@ -942,10 +942,6 @@ export default {
           console.log('DEBUG - Discarding API response as its `id` does not 
match the uuid on the browser path')
           return
         }
-        if (this.dataView && apiItemCount > 1) {
-          console.log('DEBUG - Discarding API response as got more than one 
item in data view', this.$route.params, this.items)
-          return
-        }
 
         this.items = json[responseName][objectName]
         if (!this.items || this.items.length === 0) {

Reply via email to