From 81d9b63dd4c191dafdefc12a039009e8842807de Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 28 Sep 2019 14:06:37 +0100 Subject: [PATCH] Reset selected device when changing user --- src/store/actions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/actions.js b/src/store/actions.js index 18f8ac1..3e37bbe 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -147,6 +147,7 @@ const getRecorderVersion = async ({ commit }) => { * @param {string} user Name of the new selected user */ const setSelectedUser = async ({ commit, dispatch }, user) => { + commit(types.SET_SELECTED_DEVICE, null); commit(types.SET_SELECTED_USER, user); await dispatch("reloadData"); };