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

@@ -0,0 +1,2 @@
- type: Fixed
description: Contributors table in changeset detail view ([#1718](https://github.com/scm-manager/scm-manager/pull/1718))

View File

@@ -69,8 +69,7 @@ const ContributorTable: FC<Props> = ({ changeset }) => {
if (!changeset.contributors) { if (!changeset.contributors) {
return []; 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) => { const getPersonsByContributorType = (type: string) => {