fix: removed internal row _id from exported files

This commit is contained in:
Fabio Di Stasio 2021-01-13 11:57:26 +01:00
parent f150508547
commit c0a32c040e
1 changed files with 6 additions and 1 deletions

View File

@ -359,9 +359,14 @@ export default {
downloadTable (format, filename) {
if (!this.sortedResults) return;
const rows = this.sortedResults.map(row => {
delete row._id;
return row;
});
arrayToFile({
type: format,
content: this.sortedResults,
content: rows,
filename
});
}