Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Jul 1, 2024
1 parent 9c2dbd5 commit 578c39f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ export const WorkflowStreams = ({clusterID, keyspace, name}: Props) => {

const source = getStreamSource(row);
const target = getStreamTarget(row, keyspace);

const rowState = row?.throttler_status?.component_throttled ? 'Throttled' : row.state;
return (
<tr key={row.key}>
<DataCell>
<StreamStatePip state={row?.throttler_status?.component_throttled ? 'Throttled' : row.state}/>{' '}
<StreamStatePip state={rowState}/>{' '}
<Link className="font-bold" to={href}>
{row.key}
</Link>
Expand Down

0 comments on commit 578c39f

Please sign in to comment.