From 6dda5ba682bc807e4379a0e1287945febc91ae7b Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 11 Jun 2020 08:18:32 +0200 Subject: [PATCH] fixed table of contributors for changesets without contributors --- .../src/repos/components/changesets/ContributorTable.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 204d50d913..2aee44c3be 100644 --- a/scm-ui/ui-webapp/src/repos/components/changesets/ContributorTable.tsx +++ b/scm-ui/ui-webapp/src/repos/components/changesets/ContributorTable.tsx @@ -66,6 +66,9 @@ const ContributorTable: FC = ({ changeset }) => { const [t] = useTranslation("plugins"); const collectAvailableContributorTypes = () => { + if (!changeset.contributors) { + return []; + } // @ts-ignore return [...new Set(changeset.contributors.map(contributor => contributor.type))]; }; @@ -97,7 +100,7 @@ const ContributorTable: FC = ({ changeset }) => { {t("changeset.contributor.type." + contributor.type)}: - {contributor.persons.map(person => ( + {contributor.persons!.map(person => ( ))}