Skip to content

Commit 4636c97

Browse files
committed
clean up custom events
1 parent c5bdc75 commit 4636c97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/dashboard/app/(main)/websites/[id]/_components/tabs/overview-tab.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ export function WebsiteOverviewTab({
611611
const propertyCategories = [];
612612
const propertyMap = new Map();
613613

614-
eventProperties.forEach((prop: any) => {
614+
for (const prop of eventProperties) {
615615
// Data is already pre-aggregated from API with percentages
616616
const key = prop.property_key;
617617
const value = prop.property_value;
@@ -629,10 +629,10 @@ export function WebsiteOverviewTab({
629629

630630
const valueMap = propertyMap.get(key);
631631
valueMap.set(value, data);
632-
});
632+
}
633633

634634
// Convert to array format for display - use pre-computed percentages
635-
propertyMap.forEach((valueMap, key) => {
635+
for (const [key, valueMap] of propertyMap.entries()) {
636636
const values = Array.from(valueMap.entries()).map(([value, data]) => ({
637637
value,
638638
count: data.count,
@@ -649,7 +649,7 @@ export function WebsiteOverviewTab({
649649
total,
650650
values: values.sort((a, b) => b.count - a.count),
651651
});
652-
});
652+
}
653653

654654
return {
655655
...event,

0 commit comments

Comments
 (0)