Skip to content

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

web: fix title only txt exports

Abdullah Attaaa730b5b9342
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];