Merge branch 'MSP-4344_update-row-key' into 'main'
MSP-4344 "Update row key" See merge request isp/isp-admin-ui!52
This commit is contained in:
commit
1a35a7d03e
3 files changed
+4
-7
No files matched your search
@@ -1,3 +1,5 @@
|
||||
## 0.18.1
|
||||
- В разделе модули в таблице подключений модуля для key строк в таблице добавлено id
|
||||
## 0.18.0
|
||||
- Исправлено редактирование JSON в конфиге
|
||||
## 0.17.3
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "isp-admin-ui",
|
||||
"private": true,
|
||||
"version": "0.18.0",
|
||||
"version": "0.18.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
|
||||
@@ -60,11 +60,6 @@ const Connections = () => {
|
||||
const formatFullDate = (obj: string) =>
|
||||
dayjs(obj).format(dateFormats.fullFormat)
|
||||
|
||||
const keySelector = ({
|
||||
address: { ip, port },
|
||||
establishedAt
|
||||
}: ModuleStatusType) => ip + port + establishedAt
|
||||
|
||||
const renderEndpoints = ({ endpoints }: ModuleStatusType) => {
|
||||
if (endpoints && endpoints.length) {
|
||||
return (
|
||||
@@ -144,7 +139,7 @@ const Connections = () => {
|
||||
<div className="connection-page__content">
|
||||
<div className="connection-page__content__wrap-table">
|
||||
<Table
|
||||
rowKey={keySelector}
|
||||
rowKey={(record) => record.id}
|
||||
pagination={false}
|
||||
dataSource={obj}
|
||||
columns={columns}
|
||||
|
||||
Reference in new issue
Block a user