File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ function BreadcrumbLink({ link }: { link: StacLink }) {
4040
4141 return (
4242 < >
43- { result . data && getBreadcrumbLink ( result . data ) }
43+ { /*{ result.data && getBreadcrumbLink(result.data)}*/ }
4444 < Breadcrumb . Item >
4545 < Breadcrumb . Link
4646 href = "#"
@@ -63,9 +63,9 @@ function getBreadcrumbLink(value: StacValue) {
6363 const parentLink = getLink ( value , "parent" ) ;
6464 const collectionLink = getLink ( value , "collection" ) ;
6565
66- return collectionLink ? (
66+ return collectionLink && collectionLink . href !== selfLink ?. href ? (
6767 < BreadcrumbLink link = { collectionLink } />
68- ) : parentLink && parentLink . href !== rootLink ?. href ? (
68+ ) : parentLink && parentLink . href !== rootLink ?. href && parentLink . href !== selfLink ?. href ? (
6969 < BreadcrumbLink link = { parentLink } />
7070 ) : (
7171 rootLink &&
You can’t perform that action at this time.
0 commit comments