Commit 967dcdc8 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_json_form: Fix react jsonschema to initialize returned data

parent 22ea8a6c
...@@ -62,7 +62,7 @@ function makeUiSchema(schema, uiSchema, visited) { ...@@ -62,7 +62,7 @@ function makeUiSchema(schema, uiSchema, visited) {
rJS(window) rJS(window)
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
return this.changeState({ return this.changeState({
data: {}, data: JSON.parse(options.value),
value: options.value, value: options.value,
key: options.key, key: options.key,
schema_url: options.schema, schema_url: options.schema,
......
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