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


   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.


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