Skip to content

Commit b0f1392

Browse files
committed
fix(QueryResultTable): exclude header row from single-row TSV copy, clean up default column name
1 parent 96c81c4 commit b0f1392

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/components/QueryResultTable/QueryResultTable.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export const b = cn('ydb-query-result-table');
3131
const WIDTH_PREDICTION_ROWS_COUNT = 100;
3232

3333
//used buildTsvBlobParts to convert row to tsv format for copying, so that copied value is the same as when user exports data to tsv
34-
const rowToTsv = (row: KeyValueRow) => buildTsvBlobParts([row]).join('');
34+
const rowToTsv = (row: KeyValueRow) => buildTsvBlobParts([row]).slice(2).join('');
3535

3636
const copyColumn: Column<KeyValueRow> = {
37-
name: '__copy_action__',
37+
name: 'copy',
3838
header: '',
3939
width: 40,
4040
render: ({row}) => (

0 commit comments

Comments
 (0)