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