diff options
Diffstat (limited to 'features/events/index.js')
-rw-r--r-- | features/events/index.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/features/events/index.js b/features/events/index.js index 58c408b..7ce40c8 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -152,7 +152,7 @@ class Events extends Feature { if(!this.showingWaypoints && showingWaypointsNew){ this.loadApi() - }else{ + }else if(showingWaypointsNew){ if(Date.now()-this.nextUpdateApprox > 0 && this.nextUpdateApprox > 0 && Date.now()-this.lastRequest>5000){ this.nextUpdateApprox = -2 this.loadApi() @@ -264,8 +264,10 @@ class Events extends Feature { }) this.burrialData.locations = newLocs - this.sortBurrialLocations() - this.updateBurrialPath() + if(this.showingWaypoints){ + this.sortBurrialLocations() + this.updateBurrialPath() + } } |