mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +08:00
fix(connections): disable sorting for close column
This commit is contained in:
parent
b4739d6dba
commit
98b5d62c02
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user