mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fixed error without contributors
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user