Unverified Commit a1aca2a8 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Optimization] Optimization table rowkey (#3357)

Signed-off-by: 's avatarZzm0809 <934230207@qq.com>
parent 195ae61d
...@@ -253,7 +253,7 @@ const JobList = () => { ...@@ -253,7 +253,7 @@ const JobList = () => {
search={false} search={false}
tableStyle={{ height: parent.innerHeight - 245 }} tableStyle={{ height: parent.innerHeight - 245 }}
loading={{ delay: 1000 }} loading={{ delay: 1000 }}
rowKey={(record) => record.jid} rowKey={(record) => record.id}
columns={jobListColumns} columns={jobListColumns}
params={{ params={{
isHistory: false, isHistory: false,
...@@ -297,7 +297,7 @@ const JobList = () => { ...@@ -297,7 +297,7 @@ const JobList = () => {
} }
expandable={{ expandable={{
expandedRowRender: (record) => ( expandedRowRender: (record) => (
<JobHistoryList taskId={record.taskId} key={record.jid} /> <JobHistoryList taskId={record.taskId} key={record.id} />
), ),
expandIcon: ({ expanded, onExpand, record }) => ( expandIcon: ({ expanded, onExpand, record }) => (
<Button <Button
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment