File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
apps/dashboard/app/(main)/websites/[id]/_components/tabs Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments