diff --git a/src/mol-plugin-ui/controls/parameters.tsx b/src/mol-plugin-ui/controls/parameters.tsx index a222967fc2394ae329ae046b015fc1909a3ebcd4..9fa7379e51932239e0f032c90b586432d7d42b47 100644 --- a/src/mol-plugin-ui/controls/parameters.tsx +++ b/src/mol-plugin-ui/controls/parameters.tsx @@ -1193,7 +1193,8 @@ export class MappedControl extends React.PureComponent<ParamProps<PD.Mapped<any> } render() { - const value: PD.Mapped<any>['defaultValue'] = this.props.value; + const value: PD.Mapped<any>['defaultValue'] = this.props.value || this.props.param.defaultValue; + const param = this.props.param.map(value.name); const label = this.props.param.label || camelCaseToWords(this.props.name); const Mapped = controlFor(param);