Skip to content

Commit

Permalink
Fix bug for warmer for empty boards
Browse files Browse the repository at this point in the history
  • Loading branch information
hustonhoburg committed Dec 19, 2012
1 parent 9218417 commit b8bef17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cube/warmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(options){
cursor.each(function(error, row) {
if (error) throw error;
if (row) {
expressions.splice.apply(expressions, [0, 0].concat(row.pieces
expressions.splice.apply(expressions, [0, 0].concat((row.pieces||[])
.map(function(piece){ return piece.query; })
.filter(function(expression){ return expression && !(expression in expressions); })
));
Expand Down

0 comments on commit b8bef17

Please sign in to comment.