LinkItem: safely access size

Fixes urbit/landscape#542
This commit is contained in:
Liam Fitzgerald 2021-03-10 11:53:07 +10:00
parent 869a25adcf
commit 80efb64190
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -167,7 +167,7 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
style={{ cursor: node.post.pending ? 'default' : 'pointer' }}>
<Box display='flex'>
<Icon color={commColor} icon='Chat' />
<Text color={commColor} ml={1}>{node.children.size}</Text>
<Text color={commColor} ml={1}>{size}</Text>
</Box>
</Link>
</Box>