Yashikaone commented on a change in pull request #5961:
URL: https://github.com/apache/cloudstack/pull/5961#discussion_r801594998



##########
File path: ui/src/components/view/DedicateData.vue
##########
@@ -121,8 +121,7 @@ export default {
       api('listDedicatedZones', {
         zoneid: this.resource.id
       }).then(response => {
-        if (response.listdedicatedzonesresponse.dedicatedzone &&
-            response.listdedicatedzonesresponse.dedicatedzone.length > 0) {
+        if (response.listdedicatedzonesresponse.dedicatedzone?.length > 0) {

Review comment:
       I was initially confused whether I should prefer the second approach or 
the first approach but I did not check whether _response_ or 
_response.listdedicatedzonesresponse_ is null or empty because the original 
codebase did not check it and I just wanted to make sure.
   




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to