From 462aa0f379dbbabe7d3e883d586dfd4ffec22410 Mon Sep 17 00:00:00 2001 From: Yota Hamada Date: Wed, 28 Aug 2024 19:22:18 +0900 Subject: [PATCH] build error --- ui/src/components/molecules/DAGTable.tsx | 3 --- ui/src/pages/dags/dag/index.tsx | 11 ----------- 2 files changed, 14 deletions(-) diff --git a/ui/src/components/molecules/DAGTable.tsx b/ui/src/components/molecules/DAGTable.tsx index d26bef72..a3075e26 100644 --- a/ui/src/components/molecules/DAGTable.tsx +++ b/ui/src/components/molecules/DAGTable.tsx @@ -48,8 +48,6 @@ import moment from 'moment'; import 'moment-duration-format'; import Ticker from '../atoms/Ticker'; import VisuallyHidden from '../atoms/VisuallyHidden'; -import useSWR from 'swr'; -import { GetListTagsResponse } from '../../models/api'; type Props = { DAGs: DAGItem[]; @@ -446,7 +444,6 @@ function DAGTable({ DAGs = [], group = '', refreshFn, searchText, handleSearchTe const instance = useReactTable({ data, columns, - getSubRows: (row) => row.subRows, getCoreRowModel: getCoreRowModel(), getSortedRowModel: getSortedRowModel(), getFilteredRowModel: getFilteredRowModel(), diff --git a/ui/src/pages/dags/dag/index.tsx b/ui/src/pages/dags/dag/index.tsx index a6c30f2e..9a555b1d 100644 --- a/ui/src/pages/dags/dag/index.tsx +++ b/ui/src/pages/dags/dag/index.tsx @@ -13,7 +13,6 @@ import DAGEditButtons from '../../../components/molecules/DAGEditButtons'; import LoadingIndicator from '../../../components/atoms/LoadingIndicator'; import { AppBarContext } from '../../../contexts/AppBarContext'; import useSWR from 'swr'; -import DAGErrorSnackBar from '../../../components/molecules/DAGErrorSnackBar'; type Params = { name: string; @@ -24,7 +23,6 @@ function DAGDetails() { const params = useParams(); const appBarContext = React.useContext(AppBarContext); const { pathname } = useLocation(); - const [open, setOpen] = React.useState(true); const baseUrl = useMemo( () => `/dags/${encodeURI(params.name!)}`, @@ -48,9 +46,6 @@ function DAGDetails() { if (data) { appBarContext.setTitle(data.Title); } - if (data && data.Errors.length > 0 && params.tab == 'spec') { - setOpen(true); - } }, [data, appBarContext]); const tab = useMemo(() => { @@ -116,12 +111,6 @@ function DAGDetails() { ) : null} - - {tab == 'status' ? (