Skip to content

Commit 24fab4b

Browse files
authored
Run state color utility method call. (#2922)
Signed-off-by: phixMe <[email protected]>
1 parent 1022080 commit 24fab4b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,9 @@ const TableLineageJobNode = ({ node }: TableLineageJobNodeProps & StateProps) =>
122122
width={24}
123123
sx={{
124124
rx: 4,
125-
fill:
126-
node.data.job.latestRun?.state === 'COMPLETED'
127-
? theme.palette.primary.main
128-
: theme.palette.error.main,
125+
fill: node.data.job.latestRun
126+
? runStateColor(node.data.job.latestRun.state)
127+
: theme.palette.secondary.main,
129128
}}
130129
/>
131130
<FontAwesomeIcon

0 commit comments

Comments
 (0)