Search back to normal

This commit is contained in:
portree_kid
2020-02-27 20:45:46 +01:00
parent 6fe95be8f7
commit bad59e3405
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -128,7 +128,7 @@
searched: function () {
console.log(this.searchterm)
let searchRegex = new RegExp(this.searchterm, 'i')
return this.$store.state.Airports.unfilteredairports
return this.$store.state.Airports.airports
.filter(a => searchRegex.test(a.properties.icao) || searchRegex.test(a.properties.name))
// .map(a => console.log(a.properties))
.map(a => ({ icao: a.properties.icao, name: a.properties.name }))