From 0137a5a238be4250d9dfad08f9b21e43b3957879 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 12 Jun 2020 11:53:33 +0200 Subject: [PATCH] fixed repeating wrong contributor avatars --- .../ui-components/src/repos/changesets/ChangesetAuthor.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx b/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx index 017d468888..5f1b4b4b63 100644 --- a/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx +++ b/scm-ui/ui-components/src/repos/changesets/ChangesetAuthor.tsx @@ -87,7 +87,7 @@ const SingleContributor: FC = ({ person, displayTextOnly }) => { }; type PersonsProps = { - persons: Person[]; + persons: ReadonlyArray; label: string; displayTextOnly?: boolean; }; @@ -128,7 +128,7 @@ const Contributors: FC = ({ persons, label, displayTextOnly }) => } }; -const emptyListOfContributors: Person[] = []; +const emptyListOfContributors: ReadonlyArray = []; const ChangesetAuthor: FC = ({ changeset }) => { const binder = useBinder(); @@ -168,7 +168,7 @@ const ChangesetAuthor: FC = ({ changeset }) => { // extensions const extensions = binder.getExtensions("changesets.author.suffix", { changeset }); if (extensions) { - coAuthors.push(...extensions); + authorLine.push(...extensions); } return {authorLine};