From 4fcdfc28e34adfdc05d0b315ff1a018c35b111fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Fri, 2 Jul 2021 10:41:20 +0200 Subject: [PATCH] Fix display of contributor table (#1718) Fixes the display of the contributors table in the changeset details view. --- gradle/changelog/contributors_table.yaml | 2 ++ .../src/repos/components/changesets/ContributorTable.tsx | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 gradle/changelog/contributors_table.yaml diff --git a/gradle/changelog/contributors_table.yaml b/gradle/changelog/contributors_table.yaml new file mode 100644 index 0000000000..c662abf9ba --- /dev/null +++ b/gradle/changelog/contributors_table.yaml @@ -0,0 +1,2 @@ +- type: Fixed + description: Contributors table in changeset detail view ([#1718](https://github.com/scm-manager/scm-manager/pull/1718)) diff --git a/scm-ui/ui-webapp/src/repos/components/changesets/ContributorTable.tsx b/scm-ui/ui-webapp/src/repos/components/changesets/ContributorTable.tsx index 2aee44c3be..19c9102065 100644 --- a/scm-ui/ui-webapp/src/repos/components/changesets/ContributorTable.tsx +++ b/scm-ui/ui-webapp/src/repos/components/changesets/ContributorTable.tsx @@ -69,8 +69,7 @@ const ContributorTable: FC = ({ 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) => {