duncangrant commented on a change in pull request #203:
URL: https://github.com/apache/brooklyn-ui/pull/203#discussion_r638609623
##########
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'm not sure throwing en Error here is right. Should we be more
tolerant of an incorrect type or null value here?
--
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]