Skip to content

Commit

Permalink
fix: have list wait for the view to be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed May 22, 2020
1 parent d0ad002 commit 0214803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/moderation.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ module.exports = function (cabal, authDb, infoDb) {
delete row.group
next(null, row)
})
pump(r, out)
this.ready(function () {
pump(r, out)
})
var ro = readonly(out)
if (cb) collect(ro, cb)
return ro
Expand Down

0 comments on commit 0214803

Please sign in to comment.