mirror of https://github.com/apache/cloudstack.git
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 <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
57c61fb33c
commit
0bb05f7871
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue