aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
diff options
context:
space:
mode:
authorXue Gao <xg353y@intl.att.com>2019-07-18 04:29:33 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-18 04:29:33 +0000
commit0ce38c26f68efa97f7d16ec9bbba5888982d97ba (patch)
tree9c62d416f3b56c145d4dddb8a06fa1e77d691631 /ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
parenta60064d01f6d37c0a75f1020010e5511d939785e (diff)
parent5976c17b09b82db4d5dbce7cb7fe3b1b27891104 (diff)
Merge "Fix warnings"
Diffstat (limited to 'ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js')
-rw-r--r--ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
index 453ca6bb4..da2d4230b 100644
--- a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
+++ b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
@@ -72,8 +72,10 @@ export default class ConfigurationPolicyModal extends React.Component {
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 })
+ })
}