Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Sep 17, 2024
1 parent 56930cc commit 5aed594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/cms/src/lib/search/contentful.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ export class ContentfulService {
break
}

// In case the total changes during the pagination fetches we only reference the initial total
if (total === -1) {
total = response.body.hits.total.value
}
Expand Down

0 comments on commit 5aed594

Please sign in to comment.