Skip to content

Commit

Permalink
debug issue #886
Browse files Browse the repository at this point in the history
  • Loading branch information
korelstar committed Sep 4, 2022
1 parent c9007dc commit 6320ae5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/store/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6320ae5

Please sign in to comment.