A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix loading empty conent in editor on tablets
Ammar Ahmeda184c53dd5ef
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.tsindex ea0085b74..968f33604 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts@@ -408,13 +408,13 @@ export const useEditor = (await commands.setStatus(getFormattedDate(item.dateEdited), "Saved");await postMessage(EditorEvents.title, item.title);loadingState.current = currentContent.current?.data;- if (currentContent.current?.data) {- await postMessage(- EditorEvents.html,- currentContent.current?.data,- 10000- );- }++ await postMessage(+ EditorEvents.html,+ currentContent.current?.data || "",+ 10000+ );+loadingState.current = undefined;useEditorStore.getState().setReadonly(item.readonly);await commands.setTags(currentNote.current);diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsxindex 9e4415371..0c99b3fcc 100644--- a/packages/editor-mobile/src/components/editor.tsx+++ b/packages/editor-mobile/src/components/editor.tsx@@ -246,7 +246,7 @@ const Tiptap = ({ settings }: { settings: Settings }) => {}}editor={_editor}location="bottom"- tools={[...settings.tools]}+ tools={settings.tools}defaultFontFamily={settings.fontFamily}defaultFontSize={settings.fontSize}/>