Skip to content

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

mobile: fix saving incoming note in merge conflict dialog does not work

Ammar Ahmed04f6e1068b3b
diff --git a/apps/mobile/app/components/merge-conflicts/index.tsx b/apps/mobile/app/components/merge-conflicts/index.tsx
index 80c50f6a4..c1003aef2 100644
--- a/apps/mobile/app/components/merge-conflicts/index.tsx
+++ b/apps/mobile/app/components/merge-conflicts/index.tsx
@@ -76,7 +76,9 @@ const MergeConflicts = () => {
const applyChanges = async () => {
const contentToSave = selectedContent;
if (!contentToSave) return;
- const note = await db.notes.note(contentToSave.noteId);
+ const note = await db.notes.note(
+ (content.current as UnencryptedContentItem).noteId
+ );
if (!note) return;
await db.notes.add({
id: note.id,