bugfix filter perceel

This commit is contained in:
Eljakim Herrewijnen 2024-04-03 23:22:08 +02:00
parent 700c543570
commit c4f8b5444c

View File

@ -74,7 +74,7 @@ class App extends Component {
render() { render() {
const { allLocations, query, price, minPrice, minPerceel, afstandNFI, afstandHoogstraat, afstandKorhoen, afstandBakkersdijk } = this.state const { allLocations, query, price, minPrice, minPerceel, afstandNFI, afstandHoogstraat, afstandKorhoen, afstandBakkersdijk } = this.state
let showingLocations let showingLocations
if (query || price || afstandNFI || afstandHoogstraat || afstandKorhoen || afstandBakkersdijk) { if (query || price || minPerceel || afstandNFI || afstandHoogstraat || afstandKorhoen || afstandBakkersdijk) {
showingLocations = allLocations; showingLocations = allLocations;
if(query){ if(query){
const match = new RegExp(escapeRegExp(query), 'i') const match = new RegExp(escapeRegExp(query), 'i')