Skip to content

Commit cf9ca75

Browse files
committed
fix enum issue
1 parent 89207c7 commit cf9ca75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/json-schema-editor/convertSchemaToTree.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ function convertArrayToTree (tree, schema) {
100100

101101
function convertEnumToTree (tree, schema) {
102102
let node = new Components.EnumComponent()
103-
node.value = schema
103+
let enumValue = { enum: schema }
104+
node.value = enumValue
104105
tree.children.push(node)
105106
}
106107

0 commit comments

Comments
 (0)