};
return (
<>
+ {showVariantsFilter && isProject(component?.qualifier) && (
+ <VariantFacet
+ fetching={loadingFacets.codeVariants === true}
+ open={!!openFacets.codeVariants}
+ stats={facets.codeVariants}
+ values={query.codeVariants}
+ {...commonProps}
+ />
+ )}
{component.qualifier !== ComponentQualifier.Directory && (
<DirectoryFacet
branchLike={branchLike}
{...commonProps}
/>
)}
- {showVariantsFilter && isProject(component?.qualifier) && (
- <VariantFacet
- fetching={loadingFacets.codeVariants === true}
- open={!!openFacets.codeVariants}
- stats={facets.codeVariants}
- values={query.codeVariants}
- {...commonProps}
- />
- )}
<FileFacet
branchLike={branchLike}
fetching={loadingFacets.files === true}