From dfdaa7f88aa2ea38a447a8094ed4aa55e66b3841 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 31 Dec 2020 11:47:55 +0500 Subject: [PATCH] fix exporting bug on html --- apps/mobile/src/services/Exporter.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/mobile/src/services/Exporter.js b/apps/mobile/src/services/Exporter.js index 606c8bee0..966492eed 100644 --- a/apps/mobile/src/services/Exporter.js +++ b/apps/mobile/src/services/Exporter.js @@ -65,9 +65,9 @@ async function saveToText(note) { return null; } } - let markdown = await db.notes.note(note.id).export('txt'); + let text = await db.notes.note(note.id).export('txt'); path = path + note.title + '.txt'; - await RNFetchBlob.fs.writeFile(path, markdown, 'utf8'); + await RNFetchBlob.fs.writeFile(path, text, 'utf8'); return { filePath: path, @@ -85,9 +85,9 @@ async function saveToHTML(note) { return null; } } - let markdown = await db.notes.note(note.id).export('html'); + let html = await db.notes.note(note.id).export('html'); path = path + note.title + '.html'; - await RNFetchBlob.fs.writeFile(path, markdown, 'utf8'); + await RNFetchBlob.fs.writeFile(path, html, 'utf8'); return { filePath: path,