Fix filter update method on frontend

This commit is contained in:
Dana Lambert 2021-10-20 12:38:18 +13:00
parent 72110cd19f
commit 6303bca92e

View file

@ -29,7 +29,7 @@ export default class MainPage extends React.Component {
} }
updateFilterState(newFilter) { updateFilterState(newFilter) {
this.setState({ filters: { ...this.state.filters, ...newFilter } }) this.setState({ filters: Object.assign(this.state.filters, newFilter) })
this.updatePlants() this.updatePlants()
} }