Commit d9fed9dd authored by Boris Kocherov's avatar Boris Kocherov

use key as label of field if title not available

parent 7a8cbd28
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
div.title = json_field.properties[key].description; div.title = json_field.properties[key].description;
/* console.log(key); */ /* console.log(key); */
label = document.createElement("label"); label = document.createElement("label");
label.textContent = json_field.properties[key].title; label.textContent = json_field.properties[key].title || key;
div.appendChild(label); div.appendChild(label);
div_input = document.createElement("div"); div_input = document.createElement("div");
div_input.setAttribute("class", "input"); div_input.setAttribute("class", "input");
......
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