mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fixed repeating wrong contributor avatars
This commit is contained in:
@@ -87,7 +87,7 @@ const SingleContributor: FC<PersonProps> = ({ person, displayTextOnly }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
type PersonsProps = {
|
type PersonsProps = {
|
||||||
persons: Person[];
|
persons: ReadonlyArray<Person>;
|
||||||
label: string;
|
label: string;
|
||||||
displayTextOnly?: boolean;
|
displayTextOnly?: boolean;
|
||||||
};
|
};
|
||||||
@@ -128,7 +128,7 @@ const Contributors: FC<PersonsProps> = ({ persons, label, displayTextOnly }) =>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const emptyListOfContributors: Person[] = [];
|
const emptyListOfContributors: ReadonlyArray<Person> = [];
|
||||||
|
|
||||||
const ChangesetAuthor: FC<Props> = ({ changeset }) => {
|
const ChangesetAuthor: FC<Props> = ({ changeset }) => {
|
||||||
const binder = useBinder();
|
const binder = useBinder();
|
||||||
@@ -168,7 +168,7 @@ const ChangesetAuthor: FC<Props> = ({ changeset }) => {
|
|||||||
// extensions
|
// extensions
|
||||||
const extensions = binder.getExtensions("changesets.author.suffix", { changeset });
|
const extensions = binder.getExtensions("changesets.author.suffix", { changeset });
|
||||||
if (extensions) {
|
if (extensions) {
|
||||||
coAuthors.push(...extensions);
|
authorLine.push(...extensions);
|
||||||
}
|
}
|
||||||
|
|
||||||
return <CommaSeparatedList>{authorLine}</CommaSeparatedList>;
|
return <CommaSeparatedList>{authorLine}</CommaSeparatedList>;
|
||||||
|
|||||||
Reference in New Issue
Block a user