diff --git a/ui/src/components/CodeEditor.tsx b/ui/src/components/CodeEditor.tsx index 8ca5f0ce..d3141b7b 100644 --- a/ui/src/components/CodeEditor.tsx +++ b/ui/src/components/CodeEditor.tsx @@ -17,6 +17,7 @@ interface IProps { interface IState { value: string; + reloadKey: number; } class CodeEditor extends Component { @@ -24,6 +25,7 @@ class CodeEditor extends Component { super(props); this.state = { value: "", + reloadKey: 0, }; } @@ -43,6 +45,7 @@ class CodeEditor extends Component { if (this.props.value) { this.setState({ value: this.props.value, + reloadKey: this.state.reloadKey + 1, }); } } @@ -75,7 +78,7 @@ class CodeEditor extends Component { return (
- +
); diff --git a/ui/src/views/device-profiles/DeviceProfileForm.tsx b/ui/src/views/device-profiles/DeviceProfileForm.tsx index 87f60e22..9b963280 100644 --- a/ui/src/views/device-profiles/DeviceProfileForm.tsx +++ b/ui/src/views/device-profiles/DeviceProfileForm.tsx @@ -331,8 +331,6 @@ class DeviceProfileForm extends Component { templateModalVisible: false, }); - console.log(dp.toObject().tagsMap); - this.formRef.current.setFieldsValue({ name: dp.getName(), description: dp.getDescription(),