From dcef4261a72dca4dea77b485efb17dc7314dcabc Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 27 Mar 2021 19:02:53 +0100 Subject: [PATCH] Final adjustments --- src/renderer/store/modules/profile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/store/modules/profile.js b/src/renderer/store/modules/profile.js index 59ba16a4..8509b3a6 100644 --- a/src/renderer/store/modules/profile.js +++ b/src/renderer/store/modules/profile.js @@ -71,6 +71,7 @@ const actions = { const profileIndex = profiles.findIndex((profile) => { return profile._id === rootState.settings.defaultProfile }) + if (profileIndex !== -1) { dispatch('updateActiveProfile', profileIndex) } @@ -103,7 +104,7 @@ const actions = { textColor: textColor, subscriptions: [] } - console.log('DIS DEFAULT', defaultProfile) + profileDb.update({ _id: 'allChannels' }, defaultProfile, { upsert: true }, (err, numReplaced) => { if (!err) { dispatch('grabAllProfiles')