(partialGroup, groupIndex)
| 12617 | return group; |
| 12618 | } |
| 12619 | updateGroup(partialGroup, groupIndex) { |
| 12620 | const groups = [ |
| 12621 | ...this.state.groups |
| 12622 | ]; |
| 12623 | const group = Object.assign(Object.assign({}, groups[groupIndex]), partialGroup); |
| 12624 | groups[groupIndex] = group; |
| 12625 | this.setState({ |
| 12626 | groups |
| 12627 | }); |
| 12628 | } |
| 12629 | addGroup() { |
| 12630 | const groups = [ |
| 12631 | ...this.state.groups |