diff client/src/components/fairway/Profiles.vue @ 3694:6f5297dc6039

client: bottleneck surveys dialog: show only compare survey dates that are not the selected one worked before but not when selecting a sounding result from the bottleneck list
author Markus Kottlaender <markus@intevation.de>
date Tue, 18 Jun 2019 18:23:20 +0200
parents 4a00ff7e44f0
children 242057dbc8c3
line wrap: on
line diff
--- a/client/src/components/fairway/Profiles.vue	Tue Jun 18 18:03:23 2019 +0200
+++ b/client/src/components/fairway/Profiles.vue	Tue Jun 18 18:23:20 2019 +0200
@@ -383,7 +383,9 @@
       }
     },
     additionalSurveys() {
-      return this.surveys.filter(survey => survey !== this.selectedSurvey);
+      return this.surveys.filter(
+        survey => survey.date_info !== this.selectedSurvey.date_info
+      );
     },
     coordinatesForClipboard() {
       return (