Skip to content

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

mobile: fix appending link to empty note stuck

ammarahm-ed574c4cc8a94a
diff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.js
index 52547c952..58d6adebf 100644
--- a/apps/mobile/share/share.js
+++ b/apps/mobile/share/share.js
@@ -354,7 +354,7 @@ const ShareView = ({ quicknote = false }) => {
let raw = await db.content.raw(appendNote.contentId);
_note = {
content: {
- data: raw.data + noteContent.current,
+ data: (raw?.data || "") + noteContent.current,
type: "tiptap"
},
id: appendNote.id,