comma-delimit multiple maintainers in table

This commit is contained in:
collinbarrett 2018-09-28 09:15:59 -05:00
parent 1a2a70db4a
commit 756922f321

View file

@ -46,7 +46,7 @@ const Filter = (props: any, maintainers: IMaintainer[]) =>
const Cell = (maintainerIds: number[], maintainers: IMaintainer[]) =>
maintainerIds
? <div className="fl-tag-container">
{maintainers.filter((m: IMaintainer) => maintainerIds.indexOf(m.id) > -1)
.map((m: IMaintainer, i: number) => <span key={i}>{m.name}</span>)}
{maintainers.filter((m: IMaintainer) => maintainerIds.indexOf(m.id) > -1).map((m: IMaintainer) => m.name)
.join(", ")}
</div>
: null;