Skip to content

Commit

Permalink
fixed exception when refreshing individual Ad Units and bidder respon…
Browse files Browse the repository at this point in the history
…ds slowly (prebid#989)
  • Loading branch information
Nate Cozi authored and Will Alexander committed Mar 6, 2017
1 parent 3670132 commit d4651ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bidmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function bidsBackAdUnit(adUnitCode) {
.map(request => request.bids
.filter(adUnitsFilter.bind(this, $$PREBID_GLOBAL$$._adUnitCodes))
.filter(bid => bid.placementCode === adUnitCode))
.reduce(flatten)
.reduce(flatten, [])
.map(bid => {
return bid.bidder === 'indexExchange' ?
bid.sizes.length :
Expand All @@ -64,7 +64,7 @@ function add(a, b) {
function bidsBackAll() {
const requested = $$PREBID_GLOBAL$$._bidsRequested
.map(request => request.bids)
.reduce(flatten)
.reduce(flatten, [])
.filter(adUnitsFilter.bind(this, $$PREBID_GLOBAL$$._adUnitCodes))
.map(bid => {
return bid.bidder === 'indexExchange' ?
Expand Down

0 comments on commit d4651ec

Please sign in to comment.