diff --git a/react-ui/src/components/KFModal/index.tsx b/react-ui/src/components/KFModal/index.tsx index 58de7ad6..3a03e303 100644 --- a/react-ui/src/components/KFModal/index.tsx +++ b/react-ui/src/components/KFModal/index.tsx @@ -1,6 +1,5 @@ // 自定义 Modal -import { ReactComponent as CloseIcon } from '@/assets/svg/modal-close.svg'; import ModalTitle from '@/components/ModalTitle'; import { Modal, type ModalProps } from 'antd'; import classNames from 'classnames'; diff --git a/react-ui/src/pages/Experiment/index.jsx b/react-ui/src/pages/Experiment/index.jsx index b57c0ce9..0b13d235 100644 --- a/react-ui/src/pages/Experiment/index.jsx +++ b/react-ui/src/pages/Experiment/index.jsx @@ -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}