fix deadlock after "cut to note", closes #1030

This commit is contained in:
zadam
2020-05-19 22:58:08 +02:00
parent fa5d982a55
commit 58f4f5d1e6
7 changed files with 61 additions and 54 deletions

View File

@@ -229,7 +229,7 @@ subscribeToMessages(message => {
async function processSyncRows(syncRows) {
const missingNoteIds = [];
for (const {id, entityName, entity} of syncRows) {
for (const {entityName, entity} of syncRows) {
if (entityName === 'branches' && !(entity.parentNoteId in treeCache.notes)) {
missingNoteIds.push(entity.parentNoteId);
}