We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9007dc commit 6320ae5Copy full SHA for 6320ae5
src/store/notes.js
@@ -116,6 +116,15 @@ const mutations = {
116
const actions = {
117
updateNotes(context, { noteIds, notes }) {
118
// 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
+ }
128
for (const note of notes) {
129
// TODO check for parallel (local) changes!
130
context.commit('updateNote', note)
0 commit comments