diff --git a/frontend/src/pages/MainPage.js b/frontend/src/pages/MainPage.js index 929a0bb..98897ce 100644 --- a/frontend/src/pages/MainPage.js +++ b/frontend/src/pages/MainPage.js @@ -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() }