mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 04:12:53 +01:00
fix multi-selection wizard widget
This commit is contained in:
parent
b4ee4bbb0d
commit
a53bc95ffa
1 changed files with 5 additions and 2 deletions
|
|
@ -38,10 +38,13 @@ export default class MultiEntity extends React.Component {
|
|||
|
||||
return <FormContext.Consumer>
|
||||
{
|
||||
({onChange}) => this.props.value.map(data => {
|
||||
ctx => this.props.value.map(data => {
|
||||
let subContext = {
|
||||
data,
|
||||
onChange
|
||||
updateParam: (name, value) => {
|
||||
data[name] = value;
|
||||
ctx.updateParam(this.props.name, this.props.value);
|
||||
}
|
||||
};
|
||||
let {itemField} = this.props;
|
||||
let entityId = data[itemField];
|
||||
|
|
|
|||
Loading…
Reference in a new issue