0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-25 20:55:17 +00:00

removed vuex state compiler warn

This commit is contained in:
Nikita Krupin 2022-05-14 18:48:43 -04:00
parent 06d4c96c01
commit 2614d66c60

View file

@ -12,7 +12,9 @@ const getDefaultState = () => {
videos: null, videos: null,
}; };
}; };
export const state = getDefaultState(); export const state = () => {
return getDefaultState();
};
export const actions = { export const actions = {
fetchChannel({ state }, channelUrl) { fetchChannel({ state }, channelUrl) {
Object.assign(state, getDefaultState()); Object.assign(state, getDefaultState());