From 6e9b9fd011e218fee88ac46c9657947c1ae7de5c Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Sun, 6 Dec 2020 03:32:01 -0500 Subject: [PATCH] always update state.upgradeCheck after upgrade, even if failure --- src/_store/system.module.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/_store/system.module.js b/src/_store/system.module.js index fe5e360..46f6932 100644 --- a/src/_store/system.module.js +++ b/src/_store/system.module.js @@ -210,11 +210,8 @@ const actions = { (error) => commit('checkForUpgradeFailure', error) ); } else { - console.log( - 'checkForUpgrade: already checked (' + - state.upgradeCheck + - '), not checking again' - ); + commit('checkForUpgradeFailure', null) + console.log('checkForUpgrade: already checked (' + state.upgradeCheck + '), not checking again'); } }, upgrade({ commit }) { @@ -535,6 +532,7 @@ const mutations = { }, checkForUpgradeFailure(state, error) { state.error = error; + state.upgradeCheck = null; }, upgradeRequest(state) {},