Skip to content

Commit

Permalink
fix: add csv file extension to end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmehmetAliIzci committed Jul 9, 2021
1 parent 391a61b commit daa18d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/reports/reports-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { defineComponent } from "@vue/composition-api";
export default defineComponent({
props: {
csvFileName: { type: String, default: "export.csv" },
csvFileName: { type: String, default: "export" },
},
setup(props) {
const downloadCsv = (csv: any, filename: string) => {
Expand Down Expand Up @@ -60,7 +60,7 @@ export default defineComponent({
csv.push(row.join(","));
});
downloadCsv(csv.join("\n"), props.csvFileName);
downloadCsv(csv.join("\n"), `${props.csvFileName}.csv`);
}
return {
Expand Down

0 comments on commit daa18d0

Please sign in to comment.