Skip to content

Commit

Permalink
specific case for multiple ledger visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
santisiri committed Jun 20, 2018
1 parent 1cefb44 commit 59468af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imports/ui/templates/widgets/tally/tally.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ Template.tally.onCreated(function () {
if (dbQuery) {
if (instance.subscription.ready()) {
Session.set('isLedgerReady', true);
computation.stop();
if (instance.data.options.view === 'userVotes' || instance.data.options.view === 'delegationVotes') {
computation.stop();
}
}
instance.handle = dbQuery.observeChanges({
addedBefore: (id, fields) => {
Expand Down

0 comments on commit 59468af

Please sign in to comment.