links: key linkItems by date

This commit is contained in:
Matilde Park 2020-10-08 18:23:30 -04:00
parent 8559d9d7de
commit bbd105c2e4

View File

@ -71,10 +71,11 @@ export function LinkResource(props: LinkResourceProps) {
<Row width="100%" flexShrink='0'> <Row width="100%" flexShrink='0'>
<LinkSubmit s3={s3} name={name} ship={ship.slice(1)} api={api} /> <LinkSubmit s3={s3} name={name} ship={ship.slice(1)} api={api} />
</Row> </Row>
{Array.from(graph.values()).map((node: GraphNode) => { {Array.from(graph).map(([date, node]) => {
const contact = contactDetails[node.post.author]; const contact = contactDetails[node.post.author];
return ( return (
<LinkItem <LinkItem
key={date}
resource={resourcePath} resource={resourcePath}
node={node} node={node}
nickname={contact?.nickname} nickname={contact?.nickname}