removed vuex state compiler warn

This commit is contained in:
Nikita Krupin 2022-05-14 18:48:43 -04:00
parent 06d4c96c01
commit 2614d66c60
1 changed files with 3 additions and 1 deletions

View File

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