initial commit (#16366)

This commit is contained in:
Phillip Kelley-Dotson 2021-08-20 16:46:55 -07:00 committed by GitHub
parent a9f502b67b
commit 3faf653e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -80,8 +80,9 @@ class CollectionControl extends React.Component {
}
onChange(i, value) {
Object.assign(this.props.value[i], value);
this.props.onChange(this.props.value);
const newValue = [...this.props.value];
newValue[i] = { ...this.props.value[i], ...value };
this.props.onChange(newValue);
}
onAdd() {