Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Preserve other metadata when updating note (#4068)
When updating a Note, we would take the new Document's metadata and store it in stead of the old file's Metadata since the Note's title, version, schema and content are stored there. However, other apps can store data in a file's Metadata, such as a qualification, and we don't want to lose this. From now on, we'll merge the 2 Metadata objects, overriding any existing Note metadata value but preserving metadata from other apps.
- Loading branch information