diff client/src/store/map.js @ 1565:faa045ebdf0c

select first surveydate after identification of bottleneck
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 12 Dec 2018 12:25:41 +0100
parents a0a16577261a
children f034371c5d11
line wrap: on
line diff
--- a/client/src/store/map.js	Wed Dec 12 12:01:42 2018 +0100
+++ b/client/src/store/map.js	Wed Dec 12 12:25:41 2018 +0100
@@ -513,7 +513,9 @@
                       "bottlenecks/setSelectedBottleneck",
                       feature.get("objnam"),
                       { root: true }
-                    );
+                    ).then(() => {
+                      this.commit("bottlenecks/setFirstSurveySelected");
+                    });
                     commit("moveMap", {
                       coordinates: getCenter(
                         feature