Skip to content

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

fix: a.hash > a.metadata.hash

thecodrrff9882bd045e
diff --git a/packages/core/collections/attachments.js b/packages/core/collections/attachments.js
index cd91a2080..520c36416 100644
--- a/packages/core/collections/attachments.js
+++ b/packages/core/collections/attachments.js
@@ -119,7 +119,9 @@ export default class Attachments extends Collection {
}
attachment(hashOrId) {
- return this.all.find((a) => a.id === hashOrId || a.hash === hashOrId);
+ return this.all.find(
+ (a) => a.id === hashOrId || a.metadata.hash === hashOrId
+ );
}
markAsUploaded(id) {