Unverified Commit 2816ba2b authored by gaoyan's avatar gaoyan Committed by GitHub

fix dag npe (#2341)

parent 845e4c75
......@@ -18,27 +18,28 @@
*/
import FlinkDag from '@/components/FlinkDag';
import { JobProps } from '@/pages/DevOps/JobDetail/data';
import {JobProps} from '@/pages/DevOps/JobDetail/data';
import FlinkTable from '@/pages/DevOps/JobDetail/JobOverview/components/FlinkTable';
import JobDesc from '@/pages/DevOps/JobDetail/JobOverview/components/JobDesc';
import { ProCard } from '@ant-design/pro-components';
import {ProCard} from '@ant-design/pro-components';
import {Empty} from "antd";
const JobConfigTab = (props: JobProps) => {
const { jobDetail } = props;
const {jobDetail} = props;
const job = jobDetail?.jobDataDto?.job
return (
<>
<JobDesc jobDetail={jobDetail} />
<JobDesc jobDetail={jobDetail}/>
<ProCard
style={{
height: '40vh'
}}
>
<FlinkDag job={jobDetail?.jobDataDto?.job} />
{job ? <FlinkDag job={job}/> : <Empty image={Empty.PRESENTED_IMAGE_SIMPLE}/>}
</ProCard>
<FlinkTable jobDetail={jobDetail} />
<FlinkTable jobDetail={jobDetail}/>
</>
);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment