This commit is contained in:
portree_kid 2020-04-11 21:52:44 +02:00
parent 7092441d3b
commit 05318a7782

View File

@ -68,10 +68,12 @@
}, },
airlines: function () { airlines: function () {
var airlineCodes = [] var airlineCodes = []
if (this.$store.state.Airports.currentAirport !== undefined) {
var storedairlineCodes = this.$store.state.Airports.currentAirport.airlines var storedairlineCodes = this.$store.state.Airports.currentAirport.airlines
storedairlineCodes.forEach(element => { storedairlineCodes.forEach(element => {
airlineCodes.push({value: element, label: element}) airlineCodes.push({value: element, label: element})
}) })
}
return airlineCodes return airlineCodes
}, },
groundnet: function () { groundnet: function () {