David Sehnal 5 роки тому
батько
коміт
e3dc10c085
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/mol-plugin-ui/controls/parameters.tsx

+ 1 - 1
src/mol-plugin-ui/controls/parameters.tsx

@@ -1073,7 +1073,7 @@ export class MappedControl extends React.PureComponent<ParamProps<PD.Mapped<any>
 
 type ObjectListEditorProps = { params: PD.Params, value: object, isUpdate?: boolean, apply: (value: any) => void, isDisabled?: boolean }
 class ObjectListEditor extends React.PureComponent<ObjectListEditorProps, { current: object }> {
-    state = { current: void 0 as any };
+    state = { current: this.props.value };
 
     onChangeParam: ParamOnChange = e => {
         this.setState({ current: { ...this.state.current, [e.name]: e.value } });