From aa730b5b93425b67be2d998063bb1de0e664322a Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 30 Jan 2024 00:29:46 +0500 Subject: [PATCH] web: fix title only txt exports --- apps/web/src/common/export.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/common/export.ts b/apps/web/src/common/export.ts index 6718f993c..cf91fd657 100644 --- a/apps/web/src/common/export.ts +++ b/apps/web/src/common/export.ts @@ -158,7 +158,7 @@ export async function exportNote( return false as const; }); - if (!exported) return false; + if (typeof exported === "boolean" && !exported) return false; const filename = sanitizeFilename(note.title, { replacement: "-" }); const ext = FORMAT_TO_EXT[format];