fixed error without contributors

This commit is contained in:
Sebastian Sdorra
2020-06-11 08:08:47 +02:00
parent ce2212d41f
commit 9d6621ca51
3 changed files with 11 additions and 3 deletions

View File

@@ -66,7 +66,10 @@ const BottomMarginLevel = styled(Level)`
`;
const countContributors = (changeset: Changeset) => {
return changeset.contributors.length + 1;
if (changeset.contributors) {
return changeset.contributors.length + 1;
}
return 1;
};
const ContributorLine = styled.div`