jscheffl commented on code in PR #39993:
URL: https://github.com/apache/airflow/pull/39993#discussion_r1623651554


##########
airflow/www/static/js/trigger.js:
##########
@@ -137,6 +137,14 @@ function initForm() {
           });
           field.on("blur", updateJSONconf);
           objectFields.set(elements[i].name, field);
+        } else if (
+          elements[i].attributes.valuetype &&
+          elements[i].attributes.valuetype.value === "array"
+        ) {
+          if (elements[i].value) {
+            elements[i].value = JSON.parse(elements[i].value).join("\n");

Review Comment:
   And what is the outcome if the value of the field is filled from a default 
(e.g. 3 elements) - then JSON parsing will fail?



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to