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:
Анастасия Ануфриева committed 2024-11-06 07:28:51 +00:00
commit 1a35a7d03e
3 files changed
+4 -7

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
## 0.18.1
- В разделе модули в таблице подключений модуля для key строк в таблице добавлено id
## 0.18.0
- Исправлено редактирование JSON в конфиге
## 0.17.3
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "isp-admin-ui",
"private": true,
"version": "0.18.0",
"version": "0.18.1",
"type": "module",
"scripts": {
"start": "vite",
+1 -6
View File
@@ -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}