mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-27 15:38:43 +00:00
This commit is contained in:
parent
f3054658f5
commit
3494a12647
@ -56,10 +56,7 @@ const FacetFilter: FunctionComponent<FacetProp> = ({
|
||||
return buckets.sort((a, b) => (a.key > b.key ? 1 : -1));
|
||||
};
|
||||
const getBuckets = (buckets: Array<Bucket>, state: boolean) => {
|
||||
return sortBuckets(buckets).slice(
|
||||
0,
|
||||
state ? buckets.length - 1 : LIST_SIZE
|
||||
);
|
||||
return sortBuckets(buckets).slice(0, state ? buckets.length : LIST_SIZE);
|
||||
};
|
||||
|
||||
const getLinkTextByTitle = (title: string, bucketLength: number) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user