From 9888005c9195a8a6684b50c02096df6e08a46c6a Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 8 Oct 2022 05:09:08 +0200 Subject: [PATCH] Remove unused property from the invidious store (#2686) --- src/renderer/store/modules/invidious.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/renderer/store/modules/invidious.js b/src/renderer/store/modules/invidious.js index 195d3e2d..1dfbbdf3 100644 --- a/src/renderer/store/modules/invidious.js +++ b/src/renderer/store/modules/invidious.js @@ -2,15 +2,10 @@ import fs from 'fs' const state = { currentInvidiousInstance: '', - invidiousInstancesList: null, - isGetChannelInfoRunning: false + invidiousInstancesList: null } const getters = { - getIsGetChannelInfoRunning(state) { - return state.isGetChannelInfoRunning - }, - getCurrentInvidiousInstance(state) { return state.currentInvidiousInstance }, @@ -88,8 +83,6 @@ const actions = { invidiousGetChannelInfo({ commit, dispatch }, channelId) { return new Promise((resolve, reject) => { - commit('toggleIsGetChannelInfoRunning') - const payload = { resource: 'channels', id: channelId, @@ -100,7 +93,6 @@ const actions = { resolve(response) }).catch((xhr) => { console.error(xhr) - commit('toggleIsGetChannelInfoRunning') reject(xhr) }) }) @@ -112,7 +104,6 @@ const actions = { resolve(response) }).catch((xhr) => { console.error(xhr) - commit('toggleIsGetChannelInfoRunning') reject(xhr) }) }) @@ -137,10 +128,6 @@ const actions = { } const mutations = { - toggleIsGetChannelInfoRunning(state) { - state.isGetChannelInfoRunning = !state.isGetChannelInfoRunning - }, - setCurrentInvidiousInstance(state, value) { state.currentInvidiousInstance = value },