Remove key/value from style when editing style results in empty array

This commit is contained in:
orangemug 2020-09-08 16:12:41 +01:00
parent 8b766777ac
commit 06c63509f7

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() {