Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkorelstar <korelstar@users.noreply.github.com>2022-09-04 11:53:05 +0300
committerkorelstar <korelstar@users.noreply.github.com>2022-09-04 12:01:46 +0300
commit6320ae52b67650d039de7b350a9d4f083963e90a (patch)
treece5ab675e4abc53c7b1851cd63d4a6193908201a
parentc9007dc2416b205fb46e7015d8bfb410f745e711 (diff)
debug issue #886
-rw-r--r--src/store/notes.js9
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)