Commit e091ce66 authored by Dennis Tang's avatar Dennis Tang

match state function convention in badges

parent 7cc690ee
......@@ -3,7 +3,7 @@ import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';
import { state } from './state';
import createState from './state';
Vue.use(Vuex);
......@@ -12,7 +12,7 @@ export const createStore = () =>
actions,
getters,
mutations,
state: state(),
state: createState(),
});
export default createStore();
export const state = () => ({
export default () => ({
selectedProject: {
projectId: '',
name: '',
......@@ -10,5 +10,3 @@ export const state = () => ({
zones: [],
machineTypes: [],
});
export default state();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment