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) { ...@@ -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