fix: Improve single collection export compatability

This commit is contained in:
Tom Moor
2020-12-28 10:07:38 -08:00
parent ea5d2ea9e0
commit b932457fd3

View File

@ -67,7 +67,8 @@ export async function archiveCollection(collection: Collection) {
const zip = new JSZip();
if (collection.documentStructure) {
await addToArchive(zip, collection.documentStructure);
const folder = zip.folder(collection.name);
await addToArchive(folder, collection.documentStructure);
}
return archiveToPath(zip);