Browse Source

fix: 数据集和模型回退时分页没有设置

pull/262/head
zhaowei 9 months ago
parent
commit
f11582bc64
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      react-ui/src/pages/Dataset/components/ResourcePage/index.tsx
  2. +2
    -2
      react-ui/src/pages/Experiment/Info/index.jsx

+ 1
- 1
react-ui/src/pages/Dataset/components/ResourcePage/index.tsx View File

@@ -98,7 +98,7 @@ function ResourcePage({ resourceType }: ResourcePageProps) {
dataType={activeType}
dataTag={activeTag}
initialSearchText={cacheState?.searchText}
initialPagination={cacheState?.initialPagination}
initialPagination={cacheState?.pagination}
setCacheState={setCacheState}
></ResourceList>
</Flex>


+ 2
- 2
react-ui/src/pages/Experiment/Info/index.jsx View File

@@ -138,9 +138,9 @@ function ExperimentText() {
openPropsDrawer();
}
} else if (status === ExperimentStatus.Running) {
// 如果状态是 Running,打开第一个运行中的节点,如果没有运行中的节点,则打开第一个节点
// 如果状态是 Running,打开第一个 Running 或者 pending 的节点,如果没有,则打开第一个节点
const node =
workflow.nodes.find((item) => item.experimentStatus === ExperimentStatus.Running) ??
workflow.nodes.find((item) => item.experimentStatus === ExperimentStatus.Running || item.experimentStatus === ExperimentStatus.Pending) ??
workflow.nodes[0];
if (node) {
setExperimentNodeData(node);


Loading…
Cancel
Save