web: fix title only txt exports

This commit is contained in:
Abdullah Atta
2024-01-30 00:29:46 +05:00
parent 34bbcf6387
commit aa730b5b93

View File

@@ -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];