Skip to content

Commit

Permalink
Update variable name for countries.
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Nov 22, 2019
1 parent 557ceea commit 412e9a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend/vue/src/components/dataset/DatasetAccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ export default {
name: 'DatasetAccess',
data() {
return {
authorizationLevel: 'loggedOut',
affiliation: '',
country: '',
sendError: '',
Expand Down
4 changes: 2 additions & 2 deletions frontend/vue/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const mutations = {
state.collections = payload;
},
UPDATE_COUNTRIES (state, payload) {
state.countries = payload;
state.availableCountries = payload;
},
UPDATE_DATASET (state, payload) {
state.dataset = payload;
Expand Down Expand Up @@ -89,7 +89,7 @@ const actions = {
axios
.get('/api/countries')
.then((response) => {
commit('UPDATE_COUNTRIES', response.data);
commit('UPDATE_COUNTRIES', response.data.countries);
});
},

Expand Down

0 comments on commit 412e9a2

Please sign in to comment.