mirror of
https://github.com/Fabio286/antares.git
synced 2025-04-25 15:28:41 +02:00
fix: removed internal row _id from exported files
This commit is contained in:
parent
f150508547
commit
c0a32c040e
@ -359,9 +359,14 @@ export default {
|
|||||||
downloadTable (format, filename) {
|
downloadTable (format, filename) {
|
||||||
if (!this.sortedResults) return;
|
if (!this.sortedResults) return;
|
||||||
|
|
||||||
|
const rows = this.sortedResults.map(row => {
|
||||||
|
delete row._id;
|
||||||
|
return row;
|
||||||
|
});
|
||||||
|
|
||||||
arrayToFile({
|
arrayToFile({
|
||||||
type: format,
|
type: format,
|
||||||
content: this.sortedResults,
|
content: rows,
|
||||||
filename
|
filename
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user