Skip to content

Commit

Permalink
Show up to 3 keywords in the publication listing (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosenb authored Sep 5, 2024
1 parent 49c9b21 commit c9ce7ad
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ const columns: TableColumnsType<TPublicationListingItem> = [
},
{
render: (_, record) => {
return <span>{`${record.keywords.join(', ')}`}</span>;
return (
<span>{`${record.keywords
.map((k) => k.split(';')) // Some old projects are semicolon-delimited
.flat()
.slice(0, 3)
.join(', ')}`}</span>
);
},
width: '15%',
title: 'Keywords',
Expand Down

0 comments on commit c9ce7ad

Please sign in to comment.