mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix froca update of erased blob
This commit is contained in:
parent
a452e4add5
commit
807b442c7a
@ -21,15 +21,17 @@ async function processEntityChanges(entityChanges) {
|
|||||||
} else if (ec.entityName === 'note_reordering') {
|
} else if (ec.entityName === 'note_reordering') {
|
||||||
processNoteReordering(loadResults, ec);
|
processNoteReordering(loadResults, ec);
|
||||||
} else if (ec.entityName === 'blobs') {
|
} else if (ec.entityName === 'blobs') {
|
||||||
for (const affectedNoteId of ec.noteIds) {
|
if (!ec.isErased) {
|
||||||
for (const key of Object.keys(froca.blobPromises)) {
|
for (const affectedNoteId of ec.noteIds) {
|
||||||
if (key.includes(affectedNoteId)) {
|
for (const key of Object.keys(froca.blobPromises)) {
|
||||||
delete froca.blobPromises[key];
|
if (key.includes(affectedNoteId)) {
|
||||||
|
delete froca.blobPromises[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
loadResults.addNoteContent(ec.noteIds, ec.componentId);
|
loadResults.addNoteContent(ec.noteIds, ec.componentId);
|
||||||
|
}
|
||||||
} else if (ec.entityName === 'revisions') {
|
} else if (ec.entityName === 'revisions') {
|
||||||
loadResults.addRevision(ec.entityId, ec.noteId, ec.componentId);
|
loadResults.addRevision(ec.entityId, ec.noteId, ec.componentId);
|
||||||
} else if (ec.entityName === 'options') {
|
} else if (ec.entityName === 'options') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user