Commit c17b8cd96c4e7754515ac737503d6c79cd134fd3
1 parent
4cd45e4b
Fix: Add missing groupId to json forms builder function.
Showing
2 changed files
with
2 additions
and
2 deletions
... | ... | @@ -131,7 +131,7 @@ class ThingsboardArray extends React.Component { |
131 | 131 | } |
132 | 132 | let forms = this.props.form.items.map(function(form, index){ |
133 | 133 | var copy = this.copyWithIndex(form, i); |
134 | - return this.props.builder(copy, this.props.model, index, this.props.onChange, this.props.onColorClick, this.props.onIconClick, this.props.onToggleFullscreen, this.props.mapper, this.props.builder); | |
134 | + return this.props.builder(copy, this.props.groupId, this.props.model, index, this.props.onChange, this.props.onColorClick, this.props.onIconClick, this.props.onToggleFullscreen, this.props.mapper, this.props.builder); | |
135 | 135 | }.bind(this)); |
136 | 136 | arrays.push( |
137 | 137 | <li key={keys[i]} className="list-group-item"> | ... | ... |
... | ... | @@ -19,7 +19,7 @@ class ThingsboardFieldSet extends React.Component { |
19 | 19 | |
20 | 20 | render() { |
21 | 21 | let forms = this.props.form.items.map(function(form, index){ |
22 | - return this.props.builder(form, this.props.model, index, this.props.onChange, this.props.onColorClick, this.props.onIconClick, this.props.onToggleFullscreen, this.props.mapper, this.props.builder); | |
22 | + return this.props.builder(form, this.props.groupId, this.props.model, index, this.props.onChange, this.props.onColorClick, this.props.onIconClick, this.props.onToggleFullscreen, this.props.mapper, this.props.builder); | |
23 | 23 | }.bind(this)); |
24 | 24 | |
25 | 25 | return ( | ... | ... |