Move every Attachments.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 00:30:55 +01:00
parent fe2015735a
commit 3fc9c6efe7
5 changed files with 30 additions and 7 deletions

View file

@ -66,7 +66,7 @@ function getPrevAttachmentId(currentAttachmentId) {
function openAttachmentViewer(attachmentId){
const attachment = Attachments.findOne({_id: attachmentId});
const attachment = ReactiveCache.getAttachment(attachmentId);
$("#attachment-name").text(attachment.name);