Fixed #957 View More link for tags does not behave as expected. (#1205)

This commit is contained in:
Sachin Chaurasiya 2021-11-16 16:04:37 +05:30 committed by GitHub
parent f3054658f5
commit 3494a12647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {