changeset 3483:879a85aea8a5

afdLNWL: robust legend name
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 27 May 2019 16:02:27 +0200
parents 1f8ee1366859
children a303a746e471
files client/src/components/fairway/AvailableFairwayDepthLNWL.vue
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Mon May 27 15:55:59 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Mon May 27 16:02:27 2019 +0200
@@ -197,7 +197,7 @@
     },
     csvFileName() {
       return `${this.$gettext("fairwayavailabilityLNWL")}-${
-        this.selectedFairwayAvailabilityFeature.properties.name
+        this.featureName
       }-${filters.surveyDate(this.fromDate)}-${filters.surveyDate(
         this.toDate
       )}-${this.$gettext(this.frequency)}-.csv`;
@@ -219,6 +219,7 @@
       )}) ${this.$gettext(this.frequency)}`;
     },
     featureName() {
+      if (this.selectedFairwayAvailabilityFeature == null) return "";
       return this.selectedFairwayAvailabilityFeature.properties.name;
     },
     widthPerItem() {