Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: allow uploading attachments that are in 0 notes

Abdullah Atta43bc95498925
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
);
}