Skip to content

Commit

Permalink
fix(connections): disable sorting for close column
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 3, 2023
1 parent b4739d6 commit 98b5d62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 98b5d62

Please sign in to comment.