Commit 29448c5b authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

erp5_json_form: Fix react jsonschema to initialize returned data

parent e2473315
......@@ -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