changeset 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 00548f0e81c3
children 70676557a66f
files client/src/store/map.js
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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 });
             }
           }