const showSearch = searchResults !== undefined;
- const hasNoFile = components.length === 0 && searchResults === undefined;
+ const hasComponents = components.length === 0 && searchResults === undefined;
const shouldShowBreadcrumbs = breadcrumbs.length > 1 && !showSearch;
const shouldShowComponentList =
/>
<A11ySkipTarget anchor="code_main" />
- {!hasNoFile && (
+ {!hasComponents && (
<Search
branchLike={branchLike}
component={component}
)}
<div className="code-components">
- {hasNoFile && (
+ {hasComponents && sourceViewer === undefined && (
<div className="display-flex-center display-flex-column no-file">
<span className="h1 text-muted">
{translate(