diff client/src/store/map.js @ 3313:b01c2f474770

client: identify: changed order of state mutations
author Markus Kottlaender <markus@intevation.de>
date Fri, 17 May 2019 14:07:16 +0200
parents 80037790032d
children c0f5f62343c9
line wrap: on
line diff
--- a/client/src/store/map.js	Fri May 17 13:29:23 2019 +0200
+++ b/client/src/store/map.js	Fri May 17 14:07:16 2019 +0200
@@ -375,11 +375,11 @@
                 root: true
               });
             } else {
-              commit("application/showFairwayDepth", true, { root: true });
-              commit("fairwayavailability/type", "stretches", { root: true });
               commit("imports/selectedStretchId", stretches[0].getId(), {
                 root: true
               });
+              commit("fairwayavailability/type", "stretches", { root: true });
+              commit("application/showFairwayDepth", true, { root: true });
               dispatch("moveToFeauture", { feature: stretches[0], zoom: 17 });
             }
           }
@@ -394,11 +394,11 @@
                 root: true
               });
             } else {
-              commit("application/showFairwayDepth", true, { root: true });
-              commit("fairwayavailability/type", "sections", { root: true });
               commit("imports/selectedSectionId", sections[0].getId(), {
                 root: true
               });
+              commit("fairwayavailability/type", "sections", { root: true });
+              commit("application/showFairwayDepth", true, { root: true });
               dispatch("moveToFeauture", { feature: sections[0], zoom: 17 });
             }
           }