refactor: remove unused code

This commit is contained in:
Fu Diwei 2025-01-16 23:42:53 +08:00
parent a20b82b9cf
commit dab6ad917c
3 changed files with 2 additions and 3 deletions

View File

@ -129,7 +129,7 @@ const WorkflowRuns = ({ className, style, workflowId }: WorkflowRunsProps) => {
const [page, setPage] = useState<number>(1);
const [pageSize, setPageSize] = useState<number>(10);
const { loading, loadedError } = useRequest(
const { loading, error: loadedError } = useRequest(
() => {
return listWorkflowRuns({
workflowId: workflowId,

View File

@ -1,7 +1,7 @@
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { useNavigate, useSearchParams } from "react-router-dom";
import { DeleteOutlined as DeleteOutlinedIcon, SelectOutlined as SelectOutlinedIcon, WarningOutlined as WarningOutlinedIcon } from "@ant-design/icons";
import { DeleteOutlined as DeleteOutlinedIcon, SelectOutlined as SelectOutlinedIcon } from "@ant-design/icons";
import { PageHeader } from "@ant-design/pro-components";
import { useRequest } from "ahooks";
import { Button, Divider, Empty, Menu, type MenuProps, Modal, Radio, Space, Table, type TableProps, Tooltip, Typography, notification, theme } from "antd";

View File

@ -20,7 +20,6 @@ import {
type MenuProps,
Modal,
Radio,
Result,
Space,
Switch,
Table,