This commit is contained in:
Victor Arbues 2024-05-05 02:02:22 -03:00 committed by GitHub
commit 95a68ff092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -98,7 +98,13 @@ export function prepareCopyToClipboardTabularData(data, columns) {
row[j] = data[i][parseFloat(key)];
}
}
result += `${Object.values(row).join('\t')}\n`;
try {
result += `${Object.values(row).join('\t')}\n`;
} catch {
result += `${Object.values(row)
.map(value => JSON.stringify(value))
.join('\t')}\n`;
}
}
return result;
}