Fixed Sidebar

This commit is contained in:
portree_kid
2020-01-04 20:39:24 +01:00
parent 707f8b1871
commit 237e1e430f
6 changed files with 1554 additions and 43 deletions
+1 -1
View File
@@ -54,7 +54,7 @@
let airportsToLoad = this.$store.state.Airports.airports
.filter(feature => this.visible(feature))
.map(feature => feature.properties.icao)
if (airportsToLoad[0] !== this.editingAirport) {
if (airportsToLoad.length > 0 && airportsToLoad[0] !== this.editingAirport) {
this.$refs.editLayer.load(airportsToLoad[0])
this.$refs.pavementLayer.load(airportsToLoad[0])
this.editingAirport = airportsToLoad[0]