algairim commented on a change in pull request #203:
URL: https://github.com/apache/brooklyn-ui/pull/203#discussion_r638706505



##########
File path: 
ui-modules/blueprint-composer/app/components/util/model/entity.model.js
##########
@@ -1138,6 +1156,19 @@ function setParametersFromJson(incomingModel) {
     this.touch();
 }
 
+/**
+ * Set initializers from JSON.
+ *
+ * @param {Object} model
+ * @param {Array} initializers
+ */
+function setInitializersFromJson(initializers) {
+    if (!Array.isArray(initializers)) {

Review comment:
       I followed the pattern handling errors in this model. Brooklyn 
initialisers is expected to be an array.




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