diff --git a/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx b/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx index da612af998..86fddf6897 100644 --- a/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx +++ b/scm-ui/ui-webapp/src/repos/components/changesets/ChangesetDetails.tsx @@ -26,7 +26,7 @@ import { Trans, useTranslation, WithTranslation, withTranslation } from "react-i import classNames from "classnames"; import styled from "styled-components"; import { ExtensionPoint } from "@scm-manager/ui-extensions"; -import { Changeset, Repository, Tag, Link } from "@scm-manager/ui-types"; +import { Changeset, Repository, Tag, ParentChangeset } from "@scm-manager/ui-types"; import { AvatarImage, AvatarWrapper, @@ -52,11 +52,6 @@ type State = { collapsed: boolean; }; -type Parent = { - id: string; - _links: Link[]; -}; - const RightMarginP = styled.p` margin-right: 1em; `; @@ -166,7 +161,7 @@ class ChangesetDetails extends React.Component { const description = changesets.parseDescription(changeset.description); const id = ; const date = ; - const parents = changeset._embedded.parents.map((parent: Parent) => ( + const parents = changeset._embedded.parents.map((parent: ParentChangeset) => ( {parent.id.substring(0, 7)}