Skip to content

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

core: key should always be present in old attachment

Abdullah Atta972f52fd01f9
diff --git a/packages/core/collections/attachments.js b/packages/core/collections/attachments.js
index 02b140b9b..6bba9e066 100644
--- a/packages/core/collections/attachments.js
+++ b/packages/core/collections/attachments.js
@@ -85,7 +85,8 @@ export default class Attachments extends Collection {
...oldAttachment,
...oldAttachment.metadata,
...attachmentArg,
- noteIds
+ noteIds,
+ key: attachmentArg.key || oldAttachment.key
};
const {