Mercurial > gemma
diff client/src/store/bottlenecks.js @ 2436:64ff5984351e
client: renamed store property
In alignment to 3679d604645e the related store property was also renamed.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 01 Mar 2019 09:00:53 +0100 |
parents | 3679d604645e |
children | bbc31150248c |
line wrap: on
line diff
--- a/client/src/store/bottlenecks.js Fri Mar 01 08:28:00 2019 +0100 +++ b/client/src/store/bottlenecks.js Fri Mar 01 09:00:53 2019 +0100 @@ -20,7 +20,7 @@ // initial state const init = () => { return { - bottlenecks: [], + bottlenecksList: [], selectedBottleneck: null, surveys: [], selectedSurvey: null, @@ -33,8 +33,8 @@ namespaced: true, state: init(), mutations: { - setBottlenecks: (state, bottlenecks) => { - state.bottlenecks = bottlenecks; + setBottlenecksList: (state, bottlenecksList) => { + state.bottlenecksList = bottlenecksList; }, setSelectedBottleneck: (state, name) => { state.selectedBottleneck = name; @@ -124,7 +124,7 @@ } ) .then(response => { - commit("setBottlenecks", response.data.features); + commit("setBottlenecksList", response.data.features); resolve(response); }) .catch(error => {