From 43bc95498925213611334cb5f736cf1242a90db0 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 20 Sep 2023 11:25:23 +0500 Subject: [PATCH] core: allow uploading attachments that are in 0 notes --- packages/core/src/collections/attachments.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/src/collections/attachments.js b/packages/core/src/collections/attachments.js index ee82418f0..599d093e9 100644 --- a/packages/core/src/collections/attachments.js +++ b/packages/core/src/collections/attachments.js @@ -372,9 +372,7 @@ export default class Attachments extends Collection { get pending() { return this.all.filter( - (attachment) => - (attachment.dateUploaded <= 0 || !attachment.dateUploaded) && - attachment.noteIds.length > 0 + (attachment) => attachment.dateUploaded <= 0 || !attachment.dateUploaded ); }