fix: 非root日志展开bug

(cherry picked from commit 23121a3caf74be60f178bfd5f898a77de02b6d35)
This commit is contained in:
CalciumIon 2024-11-11 16:34:02 +08:00
parent 8fc49f98d2
commit 34998f7939

View File

@ -516,7 +516,7 @@ const LogsTable = () => {
let expandDatesLocal = {};
for (let i = 0; i < logs.length; i++) {
logs[i].timestamp2string = timestamp2string(logs[i].created_at);
logs[i].key = '' + logs[i].id;
logs[i].key = i;
let other = getLogOther(logs[i].other);
let expandDataLocal = [];
if (isAdmin()) {
@ -771,6 +771,7 @@ const LogsTable = () => {
style={{ marginTop: 5 }}
columns={columns}
expandedRowRender={expandRowRender}
expandRowByClick={true}
dataSource={logs}
rowKey="key"
pagination={{