Skip to content

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

feat: allow setting undefined for failed property

thecodrrac20348fa4e5
diff --git a/packages/core/collections/attachments.js b/packages/core/collections/attachments.js
index 1d990ce71..5370d9994 100644
--- a/packages/core/collections/attachments.js
+++ b/packages/core/collections/attachments.js
@@ -244,7 +244,7 @@ export default class Attachments extends Collection {
markAsFailed(id, reason) {
const attachment = this.attachment(id);
if (!attachment) return;
- attachment.failed = reason || true;
+ attachment.failed = reason;
return this._collection.updateItem(attachment);
}