core: allow uploading attachments that are in 0 notes

This commit is contained in:
Abdullah Atta
2023-09-20 11:25:23 +05:00
committed by Abdullah Atta
parent c88bc722e1
commit 43bc954989

View File

@@ -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
);
}