Skip to content

Commit

Permalink
feat (Breadcrumbs): hide useless breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3k0 authored and 3y3 committed Jan 27, 2023
1 parent 9f4f88e commit 60bd6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DocPage/DocPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class DocPage extends React.Component<DocPageInnerProps, DocPageState> {
private renderBreadcrumbs() {
const {breadcrumbs} = this.props;

if (!breadcrumbs || breadcrumbs.length === 0) {
if (!breadcrumbs || breadcrumbs.length < 2) {
return null;
}

Expand Down

0 comments on commit 60bd6db

Please sign in to comment.