Skip to content

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

common: fix archive export (#8362)

01zulfi449287e25a12
diff --git a/packages/common/src/utils/export-notes.ts b/packages/common/src/utils/export-notes.ts
index fe0e55f58..ef30d4c39 100644
--- a/packages/common/src/utils/export-notes.ts
+++ b/packages/common/src/utils/export-notes.ts
@@ -80,11 +80,8 @@ export async function* exportNotes(
})}.${FORMAT_TO_EXT[format]}`;
if (note.archived) {
- const archivePath = pathTree.add("_archive", "underscore");
- notePathMap.set(
- note.id,
- [archivePath].map((p) => pathTree.add(join(p, filename)))
- );
+ const archiveNotePath = join("_archive", filename);
+ notePathMap.set(note.id, [pathTree.add(archiveNotePath)]);
continue;
}