Skip to content

Commit c668f52

Browse files
authored
fix: mark follower is Leader is false (#1055)
1 parent 1fb9078 commit c668f52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/containers/Tablets/Tablets.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ const columns: DataTableColumn<TTabletStateInfo & {fqdn?: string}>[] = [
3434
return i18n('Type');
3535
},
3636
render: ({row}) => {
37+
const isFollower = row.Leader === false;
3738
return (
3839
<span>
39-
{row.Type} {row.Leader ? '' : <Text color="secondary">follower</Text>}
40+
{row.Type} {isFollower ? <Text color="secondary">follower</Text> : ''}
4041
</span>
4142
);
4243
},

0 commit comments

Comments
 (0)