mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-08 13:36:32 +00:00
parent
94cd991462
commit
099ddbbce9
@ -45,8 +45,9 @@ const FacetFilter: FunctionComponent<FacetProp> = ({
|
||||
)
|
||||
);
|
||||
};
|
||||
const getSeparator = (length: number, index: number, flag: boolean) => {
|
||||
return length !== 1 && index < length - 1 && flag ? (
|
||||
|
||||
const getSeparator = (length: number, index: number) => {
|
||||
return length !== 1 && index < length - 1 ? (
|
||||
<div className="tw-filter-seperator" />
|
||||
) : null;
|
||||
};
|
||||
@ -187,11 +188,7 @@ const FacetFilter: FunctionComponent<FacetProp> = ({
|
||||
<div className="sidebar-my-data-holder mt-2 mb-3">
|
||||
{getFilterItems(aggregation)}
|
||||
</div>
|
||||
{getSeparator(
|
||||
aggregations.length,
|
||||
index,
|
||||
aggregations[index + 1]?.buckets?.length > 0
|
||||
)}
|
||||
{getSeparator(aggregations.length, index)}
|
||||
</>
|
||||
) : null}
|
||||
</Fragment>
|
||||
|
||||
@ -269,7 +269,9 @@ const TagsPage = () => {
|
||||
</p>
|
||||
|
||||
{getCountBadge(
|
||||
category.children?.length || 0,
|
||||
currentCategory?.name === category.name
|
||||
? currentCategory.children?.length
|
||||
: category.children?.length || 0,
|
||||
'tw-self-center',
|
||||
currentCategory?.name === category.name
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user