1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: unable to export BLOB values from table content o query result

This commit is contained in:
2023-04-08 09:39:28 +02:00
parent 8be9f932e7
commit afa61a9bc2
3 changed files with 18 additions and 7 deletions

View File

@ -668,15 +668,14 @@ const selectResultset = (index: number) => {
const downloadTable = (format: 'csv' | 'json' | 'sql', table: string) => {
if (!sortedResults.value) return;
const rows = JSON.parse(JSON.stringify(sortedResults.value)).map((row: any) => {
const rows = sortedResults.value.map((row: any) => {
delete row._antares_id;
return row;
});
exportRows({
type: format,
content: rows,
fields: fieldsObj.value as {
fields: JSON.parse(JSON.stringify(fieldsObj.value)) as {
[key: string]: {type: string; datePrecision: number};
},
client: workspaceClient.value,