mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 09:25:24 +01:00
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:
commit
bb69f143b8
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ export default class FieldDynamicArray extends React.Component {
|
||||||
const values = this.values.slice(0)
|
const values = this.values.slice(0)
|
||||||
values.splice(valueIdx, 1)
|
values.splice(valueIdx, 1)
|
||||||
|
|
||||||
this.props.onChange(values)
|
this.props.onChange(values.length > 0 ? values : undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in a new issue