mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
Remove key/value from style when editing style results in empty array
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user