Skip to content

Commit

Permalink
Merge pull request #30 from slidewiki/Fix_indexing_sending_null
Browse files Browse the repository at this point in the history
Fix initial indexing properly ignoring decks that no operation is needed
  • Loading branch information
kprist committed Nov 7, 2018
2 parents c4656de + fb26f76 commit 01183aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/solr/collections/decktree.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ let self = module.exports = {

for (const deckNode of decktreeNodes) {
let nodeDoc = await getNodeDocument(deckNode);
docs.push(nodeDoc);

if (nodeDoc) {
docs.push(nodeDoc);
}
}

return solr.add(docs);
Expand Down

0 comments on commit 01183aa

Please sign in to comment.