Commit ee7ba7ee authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_json_form: Fix react jsonschema to initialize returned data

parent 54bffd78
......@@ -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