# HG changeset patch # User Markus Kottlaender # Date 1556535507 -7200 # Node ID 583b6748431f39dceddeed0d84c7711d80b1cd86 # Parent f0af359391a064b03f24d483b44ee85568e6bbf6 client: don't acces module's own state through rootState diff -r f0af359391a0 -r 583b6748431f client/src/store/fairway.js --- a/client/src/store/fairway.js Mon Apr 29 12:11:06 2019 +0200 +++ b/client/src/store/fairway.js Mon Apr 29 12:58:27 2019 +0200 @@ -178,7 +178,7 @@ }); } }, - cut({ commit, dispatch, rootState, rootGetters }, cut) { + cut({ commit, dispatch, state, rootState, rootGetters }, cut) { return new Promise(resolve => { const length = getLength(cut.getGeometry()); commit( @@ -207,9 +207,9 @@ const profileLoaders = [ dispatch("loadProfile", rootState.bottlenecks.selectedSurvey) ]; - if (rootState.fairwayprofile.additionalSurvey) { + if (state.additionalSurvey) { profileLoaders.push( - dispatch("loadProfile", rootState.fairwayprofile.additionalSurvey) + dispatch("loadProfile", state.additionalSurvey) ); }