fix: exporting multiple notes with same title (#1119)

This commit is contained in:
Aman Harwara
2022-06-19 02:30:49 +05:30
committed by GitHub
parent e7080dfe3f
commit dfbd72b1df
2 changed files with 17 additions and 5 deletions

View File

@@ -222,7 +222,7 @@ const NotesOptions = ({
const format = editor?.package_info?.file_type || 'txt'
return `${note.title}.${format}`
},
[application],
[application.componentManager],
)
const downloadSelectedItems = useCallback(async () => {
@@ -239,7 +239,7 @@ const NotesOptions = ({
await application.getArchiveService().downloadDataAsZip(
notes.map((note) => {
return {
filename: getNoteFileName(note),
name: getNoteFileName(note),
content: new Blob([note.text]),
}
}),