GutoVeronezi commented on a change in pull request #4769:
URL: https://github.com/apache/cloudstack/pull/4769#discussion_r590596283



##########
File path: ui/src/components/view/TreeView.vue
##########
@@ -213,6 +215,40 @@ export default {
       }
 
       this.reloadTreeData(newData)
+    },
+    treeVerticalData () {
+      if (!this.domainStore.isExpand) {
+        return
+      }
+      if (this.domainStore.expands && this.domainStore.expands.length > 0) {
+        for (let i = 0; i < this.domainStore.expands.length; i++) {

Review comment:
       Suggestion:
   I think it will be more interesting if we use a `for...of` here, to simplify 
the code.
   
   ```js
   for (let expandKey of this.domainStore.expands) {
   ...
   ``` 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to