Skip to content

Commit 42b8863

Browse files
authored
Fixing job node color for running and other states. (#2897)
1 parent 85430de commit 42b8863

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

web/src/routes/table-level/TableLineageJobNode.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import MQTooltip from '../../components/core/tooltip/MQTooltip'
1616
import MqStatus from '../../components/core/status/MqStatus'
1717
import MqText from '../../components/core/text/MqText'
1818
import React from 'react'
19+
import {runStateColor} from "../../helpers/nodes";
1920

2021
interface StateProps {
2122
lineage: LineageGraph
@@ -84,11 +85,7 @@ const TableLineageJobNode = ({ node }: TableLineageJobNodeProps & StateProps) =>
8485
</MqText>
8586
<MqStatus
8687
label={job.latestRun?.state || 'N/A'}
87-
color={
88-
job.latestRun?.state === 'COMPLETED'
89-
? theme.palette.primary.main
90-
: theme.palette.error.main
91-
}
88+
color={job.latestRun?.state ? runStateColor(job.latestRun?.state) : theme.palette.primary.main}
9289
/>
9390
</Box>
9491
</Box>

0 commit comments

Comments
 (0)