From 21a4739c682e177cbb70140ad710be9ed18b7b71 Mon Sep 17 00:00:00 2001 From: PrestonN Date: Sun, 10 Apr 2022 17:15:41 -0400 Subject: [PATCH] Check if mutation exists before calling commit --- src/renderer/store/modules/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/store/modules/settings.js b/src/renderer/store/modules/settings.js index 3b62b5e9b..13144dea3 100644 --- a/src/renderer/store/modules/settings.js +++ b/src/renderer/store/modules/settings.js @@ -325,7 +325,9 @@ const customActions = { dispatch(defaultSideEffectsTriggerId(_id), value) } - commit(defaultMutationId(_id), value) + if (Object.keys(mutations).includes(defaultMutationId(_id))) { + commit(defaultMutationId(_id), value) + } } } catch (errMessage) { console.error(errMessage)