diff --git a/src/mol-plugin-ui/controls/parameters.tsx b/src/mol-plugin-ui/controls/parameters.tsx index 1a22bb635bdeba726466e7ee4e48310894668a4a..675488da40f3128a83bcc06ab19eb9ae91e0765d 100644 --- a/src/mol-plugin-ui/controls/parameters.tsx +++ b/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 } });