|
|
|
@@ -98,7 +98,7 @@ function Experiment() { |
|
|
|
setExperimentInList(list); |
|
|
|
// 获取 TensorBoard 状态 |
|
|
|
list.forEach((item) => { |
|
|
|
if (item.nodes_result.tensorboard_log) { |
|
|
|
if (item.nodes_result?.tensorboard_log) { |
|
|
|
const timerId = setTimeout(() => { |
|
|
|
getTensorBoardStatus(item); |
|
|
|
}, 0); |
|
|
|
@@ -161,8 +161,8 @@ function Experiment() { |
|
|
|
} |
|
|
|
}; |
|
|
|
const expandChange = (e, record) => { |
|
|
|
clearExperimentInTimers(); |
|
|
|
if (record.id === expandedRowKeys) { |
|
|
|
clearExperimentInTimers(); |
|
|
|
setExpandedRowKeys(null); |
|
|
|
} else { |
|
|
|
getQueryByExperiment(record.id); |
|
|
|
@@ -434,7 +434,7 @@ function Experiment() { |
|
|
|
{index + 1} |
|
|
|
</a> |
|
|
|
<div style={{ width: '300px' }}> |
|
|
|
{item.nodes_result.tensorboard_log ? ( |
|
|
|
{item.nodes_result?.tensorboard_log ? ( |
|
|
|
<TensorBoardStatus |
|
|
|
status={item.tensorBoardStatus} |
|
|
|
onClick={() => handleTensorboard(item)} |
|
|
|
|