mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +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…
Reference in New Issue
Block a user