Merge pull request #724 from orangemug/fix/issue-707

Remove key/value from style when editing style results in empty array
This commit is contained in:
Orange Mug 2020-09-09 20:14:58 +01:00 committed by GitHub
commit bb69f143b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ export default class FieldDynamicArray extends React.Component {
const values = this.values.slice(0)
values.splice(valueIdx, 1)
this.props.onChange(values)
this.props.onChange(values.length > 0 ? values : undefined);
}
render() {