Fix filter update method on frontend
This commit is contained in:
parent
72110cd19f
commit
6303bca92e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export default class MainPage extends React.Component {
|
|||
}
|
||||
|
||||
updateFilterState(newFilter) {
|
||||
this.setState({ filters: { ...this.state.filters, ...newFilter } })
|
||||
this.setState({ filters: Object.assign(this.state.filters, newFilter) })
|
||||
this.updatePlants()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue