0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 11:15:14 +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,
};
};
export const state = getDefaultState();
export const state = () => {
return getDefaultState();
};
export const actions = {
fetchChannel({ state }, channelUrl) {
Object.assign(state, getDefaultState());