diff client/src/application/Main.vue @ 1030:bf10a7f990cc

refac: fairway profile retrieves current data from store
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 24 Oct 2018 15:09:06 +0200
parents 04a9e78dcc5f
children 505ec57929aa
line wrap: on
line diff
--- a/client/src/application/Main.vue	Wed Oct 24 14:50:25 2018 +0200
+++ b/client/src/application/Main.vue	Wed Oct 24 15:09:06 2018 +0200
@@ -15,7 +15,6 @@
                 :selectedWaterLevel="selectedWaterLevel"
                 :fairwayCoordinates="fairwayCoordinates"
                 :waterLevels="waterLevels"
-                :data="coordinates"
                 :height="height"
                 :width="width"
                 :xScale="xAxis"
@@ -87,10 +86,6 @@
       "availableSurveys"
     ]),
     ...mapState("fairwayprofile", ["selectedMorph"]),
-    coordinates() {
-      const currentSurveyDate = this.selectedMorph.date_info;
-      return this.currentProfile[currentSurveyDate];
-    },
     additionalSurveys() {
       if (!this.availableSurveys) return [];
       return this.availableSurveys.surveys.filter(x => {