Commit db16044a authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Ignore error if the field cannot be found

See merge request nexedi/slapos.core!464
parents 5f5729b1 5c02c537
Pipeline #25462 passed with stage
in 0 seconds
...@@ -694,9 +694,11 @@ ...@@ -694,9 +694,11 @@
field_name = field_name.split("/").slice(0, -1).join("/"); field_name = field_name.split("/").slice(0, -1).join("/");
input_field = g.element.querySelector(".slapos-parameter[name='/" + field_name + "']"); input_field = g.element.querySelector(".slapos-parameter[name='/" + field_name + "']");
} }
div = input_field.parentNode; if (input_field !== null) {
div.setAttribute("class", "slapos-parameter error-input"); div = input_field.parentNode;
div.querySelector("span.error").textContent = validation.errors[error_index].error; div.setAttribute("class", "slapos-parameter error-input");
div.querySelector("span.error").textContent = validation.errors[error_index].error;
}
} else if (error_dict.keyword === "required") { } else if (error_dict.keyword === "required") {
// Specific use case for required // Specific use case for required
field_name = "/" + error_dict.key; field_name = "/" + error_dict.key;
......
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1004.35604.19918.32529</string> </value> <value> <string>1004.35618.45138.1348</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1669324961.21</float> <float>1671043096.21</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment