mirror of
https://github.com/wekan/wekan.git
synced 2026-02-04 15:41:52 +01:00
Move every Attachments.findOne() to the ReactiveCache
This commit is contained in:
parent
fe2015735a
commit
3fc9c6efe7
5 changed files with 30 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue