fix(connections): disable sorting for close column

This commit is contained in:
kunish 2023-09-03 22:00:01 +08:00
parent b4739d6dba
commit 98b5d62c02
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -110,6 +110,7 @@ export default () => {
const columns: ColumnDef<ConnectionWithSpeed>[] = [
{
accessorKey: CONNECTIONS_TABLE_ACCESSOR_KEY.Close,
enableSorting: false,
header: () => (
<div class="flex h-full items-center">
<Button
@ -308,7 +309,8 @@ export default () => {
<td
onContextMenu={(e) => {
e.preventDefault()
void writeClipboard(cell.renderValue() as string)
typeof cell.renderValue() === 'string' &&
void writeClipboard(cell.renderValue() as string)
}}
>
{flexRender(