From 2614d66c60aa8dc00bf8dbcea88922eaf7aa5c50 Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Sat, 14 May 2022 18:48:43 -0400 Subject: [PATCH] removed vuex state compiler warn --- NUXT/store/channel/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NUXT/store/channel/index.js b/NUXT/store/channel/index.js index f57fec7..55089c2 100644 --- a/NUXT/store/channel/index.js +++ b/NUXT/store/channel/index.js @@ -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());