Commit 92e64283 authored by Boris Kocherov's avatar Boris Kocherov

use render_enum_with_title only if schema_arr.length > 1 in other case use render_const

parent 1364588d
......@@ -970,7 +970,7 @@
// render input begin
if (!input && schema_arr[0].is_arr_of_const) {
if (!input && schema_arr[0].is_arr_of_const && schema_arr.length > 1) {
input = render_enum_with_title(gadget, schema_arr, json_document, options.selected_schema);
}
if (!input && schema.const !== undefined) {
......
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