commit | 5976c17b09b82db4d5dbce7cb7fe3b1b27891104 | [log] [tgz] |
---|---|---|
author | sebdet <sebastien.determe@intl.att.com> | Wed Jul 17 13:59:33 2019 +0200 |
committer | sebdet <sebastien.determe@intl.att.com> | Wed Jul 17 13:59:33 2019 +0200 |
tree | e411376e08c9be347ec61eb4321fb17f678bde52 | |
parent | 2dacb9bd185db2c05de435d2bd446865e158e483 [diff] [blame] |
Fix warnings Fix reported javascript warnings by NodeJS when compiling Issue-ID: CLAMP-426 Change-Id: Iebf369c0d3094fcbe83e9e5b1d6138b808105e46 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
diff --git a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js index 453ca6b..da2d423 100644 --- a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js +++ b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
@@ -72,8 +72,10 @@ JSONEditor.defaults.options.disable_array_delete_all_rows = false; JSONEditor.defaults.options.show_errors = 'always'; - this.state.jsonEditor = new JSONEditor(document.getElementById("editor"), - { schema: toscaModel.schema, startval: editorData }); + this.setState({ + jsonEditor: new JSONEditor(document.getElementById("editor"), + { schema: toscaModel.schema, startval: editorData }) + }) }