Skip to content

Commit

Permalink
fix: wrong filename when downloading file
Browse files Browse the repository at this point in the history
Fixes #537
  • Loading branch information
robertsLando committed Feb 10, 2021
1 parent 346d638 commit 97c02b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Store.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ export default {
},
async downloadFile () {
if (this.selected) {
const fileName = this.selected.name.split('.')[0]
// get the file name without the extension
const fileName = this.selected.name
.split('.')
.slice(0, -1)
.join('.')
this.$listeners.export(this.fileContent, fileName, this.selected.ext)
}
},
Expand Down

0 comments on commit 97c02b8

Please sign in to comment.