From 6320ae52b67650d039de7b350a9d4f083963e90a Mon Sep 17 00:00:00 2001 From: korelstar Date: Sun, 4 Sep 2022 10:53:05 +0200 Subject: [PATCH] debug issue #886 --- src/store/notes.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/store/notes.js b/src/store/notes.js index 2f9d7da2b..d00581c0b 100644 --- a/src/store/notes.js +++ b/src/store/notes.js @@ -116,6 +116,15 @@ const mutations = { const actions = { updateNotes(context, { noteIds, notes }) { // add/update new notes + if (!notes || !noteIds) { + // TODO remove this block after fixing #886 + console.error('This should not happen, please see issue #886') + console.info(notes) + console.info(noteIds) + // eslint-disable-next-line no-console + console.trace() + return + } for (const note of notes) { // TODO check for parallel (local) changes! context.commit('updateNote', note)