Skip to content

Build your personal knowledge base with Trilium Notes

fix saving revisions for non-text types, closes #4176

zadamd706b3a447cd
diff --git a/src/becca/entities/bnote.js b/src/becca/entities/bnote.js
index dc47ce9ca5..050fdd08d6 100644
--- a/src/becca/entities/bnote.js
+++ b/src/becca/entities/bnote.js
@@ -1610,10 +1610,10 @@ class BNote extends AbstractBeccaEntity {
noteContent = noteContent.replaceAll(new RegExp(`href="[^"]*attachmentId=${noteAttachment.attachmentId}[^"]*"`, 'gi'),
`href="api/attachments/${revisionAttachment.attachmentId}/download"`);
}
-
- revision.setContent(noteContent, {forceSave: true});
}
+ revision.setContent(noteContent);
+
return revision;
});
}