Просмотр исходного кода

fix: fix log table use created_at as key instead of id

Co-authored-by: 13714733197 <13714733197@163.com>
JustSong 2 лет назад
Родитель
Сommit
f0d5e102a3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/src/components/LogsTable.js

+ 1 - 1
web/src/components/LogsTable.js

@@ -324,7 +324,7 @@ const LogsTable = () => {
               .map((log, idx) => {
                 if (log.deleted) return <></>;
                 return (
-                  <Table.Row key={log.created_at}>
+                  <Table.Row key={log.id}>
                     <Table.Cell>{renderTimestamp(log.created_at)}</Table.Cell>
                     {
                       isAdminUser && (