diff options
author | korelstar <korelstar@users.noreply.github.com> | 2022-09-04 11:53:05 +0300 |
---|---|---|
committer | korelstar <korelstar@users.noreply.github.com> | 2022-09-04 12:01:46 +0300 |
commit | 6320ae52b67650d039de7b350a9d4f083963e90a (patch) | |
tree | ce5ab675e4abc53c7b1851cd63d4a6193908201a | |
parent | c9007dc2416b205fb46e7015d8bfb410f745e711 (diff) |
debug issue #886
-rw-r--r-- | src/store/notes.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/store/notes.js b/src/store/notes.js index 2f9d7da2..d00581c0 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) |