From b4820fced85bc60b7026f7613d1f70b751c57d45 Mon Sep 17 00:00:00 2001 From: xiaokang Date: Thu, 5 Dec 2024 15:50:09 +0800 Subject: [PATCH] fix: set unique session id --- .../Workspace/components/SessionManagementPage/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/page/Workspace/components/SessionManagementPage/index.tsx b/src/page/Workspace/components/SessionManagementPage/index.tsx index 3d623edf..0e293d33 100644 --- a/src/page/Workspace/components/SessionManagementPage/index.tsx +++ b/src/page/Workspace/components/SessionManagementPage/index.tsx @@ -351,14 +351,16 @@ function SessionManagementPage(props: IProps) { ) : null}
`${row.sessionId}-${row.svrIp}`} bordered={true} loading={listLoading} columns={columns} dataSource={filteredRows} loadData={(page) => {}} rowSelection={{ - selectedRowKeys: selectedRows.map((r: IDatabaseSession) => r.sessionId), + selectedRowKeys: selectedRows.map( + (r: IDatabaseSession) => `${r.sessionId}-${r.svrIp}`, + ), onChange: (selectedRowKeys: string[], rows: IDatabaseSession[]) => { setSelectedRows(rows); },