diff --git a/src/pages/Connections.tsx b/src/pages/Connections.tsx index 5c5c4b22..58e63fe6 100644 --- a/src/pages/Connections.tsx +++ b/src/pages/Connections.tsx @@ -196,9 +196,12 @@ export default () => { ]) const [grouping, setGrouping] = createSignal([]) - const [sorting, setSorting] = createSignal([ - { id: CONNECTIONS_TABLE_ACCESSOR_KEY.ConnectTime, desc: true }, - ]) + const [sorting, setSorting] = makePersisted( + createSignal([ + { id: CONNECTIONS_TABLE_ACCESSOR_KEY.ConnectTime, desc: true }, + ]), + { name: 'connectionsTableSorting', storage: localStorage }, + ) const table = createSolidTable({ state: { @@ -371,8 +374,9 @@ export default () => { { e.preventDefault() - typeof cell.renderValue() === 'string' && - void writeClipboard(cell.renderValue() as string) + + const value = cell.renderValue() as null | string + value && writeClipboard(value).catch(() => {}) }} > {cell.getIsGrouped() ? (