Skip to content

Commit

Permalink
build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta committed Aug 28, 2024
1 parent b5382a5 commit 462aa0f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions ui/src/components/molecules/DAGTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -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(),
Expand Down
11 changes: 0 additions & 11 deletions ui/src/pages/dags/dag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -24,7 +23,6 @@ function DAGDetails() {
const params = useParams<Params>();
const appBarContext = React.useContext(AppBarContext);
const { pathname } = useLocation();
const [open, setOpen] = React.useState(true);

const baseUrl = useMemo(
() => `/dags/${encodeURI(params.name!)}`,
Expand All @@ -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(() => {
Expand Down Expand Up @@ -116,12 +111,6 @@ function DAGDetails() {
) : null}
</Stack>

<DAGErrorSnackBar
open={open}
setOpen={setOpen}
errors={data.Errors}
/>

<Box sx={{ mx: 4, flex: 1 }}>
{tab == 'status' ? (
<DAGStatus DAG={data.DAG} name={params.name} refresh={refreshFn} />
Expand Down

0 comments on commit 462aa0f

Please sign in to comment.