mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-26 07:24:57 +01:00
more flexibele code
This commit is contained in:
parent
8c546e31b3
commit
ed8ccd3f68
@ -36,7 +36,7 @@ SettingsGroup.propTypes = {
|
|||||||
export const SelectField = (props, context) => (
|
export const SelectField = (props, context) => (
|
||||||
<MaterialUISelectField
|
<MaterialUISelectField
|
||||||
{ ...props }
|
{ ...props }
|
||||||
value={context.state[props.name]}
|
value={_.get(context.state, props.name)}
|
||||||
onChange={(event, index, value) => context.onChange(props.name, value)}
|
onChange={(event, index, value) => context.onChange(props.name, value)}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user