We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f02051 commit f0b2503Copy full SHA for f0b2503
app/[locale]/(user)/categories/[categorySlug]/page.tsx
@@ -229,9 +229,9 @@ const CategoryDetailsPage = ({ params }: { params: { categorySlug: any } }) => {
229
230
const filterOptions = Object.entries(aggregations).reduce(
231
(acc: Record<string, { label: string; value: string }[]>, [key, value]) => {
232
- acc[key.replace('.raw', '')] = value.buckets.map((bucket: Bucket) => ({
233
- label: bucket.key,
234
- value: bucket.key,
+ acc[key] = Object.entries(value).map(([bucketKey]) => ({
+ label: bucketKey,
+ value: bucketKey,
235
}));
236
return acc;
237
},
0 commit comments