Commit 9efee0e7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: Convert boolean as string to actuall boolean.

parent 5bd4fe83
......@@ -83,6 +83,12 @@
if (json_field.type === "boolean") {
json_field['enum'] = [true, false];
if (default_value === "true") {
default_value = true;
}
if (default_value === "false") {
default_value = false;
}
return render_selection(json_field, default_value);
}
......
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