Skip to content

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

fix note not loading on open

ammarahm-edd8fa71b4f58d
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index a6fc19725..56294407f 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -389,13 +389,17 @@ const Editor = ({noMenu}) => {
id = note.id;
saveCounter = 0;
InfoBarRef.current?.setDateCreated(note.dateCreated);
+ content = {};
+ content.text = '';
try {
content.text = await db.notes.note(id).text();
InfoBarRef.current?.setDateEdited(
note.dateEdited,
content.text.split(' ').length,
);
- } catch (e) {}
+ } catch (e) {
+
+ }
if (title !== null || title === '') {
post({