From 5a5eec2877e926edbe5aa3d0daa9d13b53ada869 Mon Sep 17 00:00:00 2001 From: xiaokang Date: Mon, 9 Dec 2024 17:48:13 +0800 Subject: [PATCH] Revert "fix: set unique session id" This reverts commit b4820fced85bc60b7026f7613d1f70b751c57d45. --- .../Workspace/components/SessionManagementPage/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/page/Workspace/components/SessionManagementPage/index.tsx b/src/page/Workspace/components/SessionManagementPage/index.tsx index 5d7b51320..ba3ecfca0 100644 --- a/src/page/Workspace/components/SessionManagementPage/index.tsx +++ b/src/page/Workspace/components/SessionManagementPage/index.tsx @@ -346,16 +346,14 @@ function SessionManagementPage(props: IProps) { ) : null}
`${row.sessionId}-${row.svrIp}`} + rowKey={'sessionId'} bordered={true} loading={listLoading} columns={columns} dataSource={filteredRows} loadData={(page) => {}} rowSelection={{ - selectedRowKeys: selectedRows.map( - (r: IDatabaseSession) => `${r.sessionId}-${r.svrIp}`, - ), + selectedRowKeys: selectedRows.map((r: IDatabaseSession) => r.sessionId), onChange: (selectedRowKeys: string[], rows: IDatabaseSession[]) => { setSelectedRows(rows); },