Fix display of contributor table (#1718)

Fixes the display of the contributors table in the changeset details view.
This commit is contained in:
René Pfeuffer
2021-07-02 10:41:20 +02:00
committed by GitHub
parent e5ebb78146
commit 4fcdfc28e3
2 changed files with 3 additions and 2 deletions

View File

@@ -69,8 +69,7 @@ const ContributorTable: FC<Props> = ({ changeset }) => {
if (!changeset.contributors) {
return [];
}
// @ts-ignore
return [...new Set(changeset.contributors.map(contributor => contributor.type))];
return new Set(changeset.contributors.map(contributor => contributor.type));
};
const getPersonsByContributorType = (type: string) => {