Skip to content

Commit

Permalink
Fix bug with missing results
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jul 23, 2024
1 parent 5196333 commit cce50cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/srm/src/app/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ export class AnalyticsService {
});
}

while (items.length > 0) {
const itemsBatch = items.splice(0, 10);
const itemBatches = items.slice();
while (itemBatches.length > 0) {
const itemsBatch = itemBatches.splice(0, 10);
this.gtag({
event: 'view_item_list',
ecommerce: {
Expand Down

0 comments on commit cce50cb

Please sign in to comment.