Skip to content

Commit 6320ae5

Browse files
committed
debug issue #886
1 parent c9007dc commit 6320ae5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/store/notes.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ const mutations = {
116116
const actions = {
117117
updateNotes(context, { noteIds, notes }) {
118118
// add/update new notes
119+
if (!notes || !noteIds) {
120+
// TODO remove this block after fixing #886
121+
console.error('This should not happen, please see issue #886')
122+
console.info(notes)
123+
console.info(noteIds)
124+
// eslint-disable-next-line no-console
125+
console.trace()
126+
return
127+
}
119128
for (const note of notes) {
120129
// TODO check for parallel (local) changes!
121130
context.commit('updateNote', note)

0 commit comments

Comments
 (0)