iuliana commented on pull request #223:
URL: https://github.com/apache/brooklyn-ui/pull/223#issuecomment-861304276


   > Looks ok, however, I would check the following condition:
   > 
   > ```
   > if(Array.isArray(edit.type.specList) && edit.type.specList.length > 0 && 
edit.type.specList[0].format === $stateParams.format) {
   >     yaml = edit.type.specList[0].contents;
   > }
   > ```
   > 
   > `Array.isArray()` verifies if it is not null as well.
   
   @algairim you're the JavaScript expert. Updated as requested. Cheers!


-- 
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:
[email protected]


Reply via email to