diff --git a/_static/chart-of-accounts.js b/_static/chart-of-accounts.js index 8d79f0f02..b4a42dd2e 100644 --- a/_static/chart-of-accounts.js +++ b/_static/chart-of-accounts.js @@ -99,10 +99,9 @@ ); }, accounts: function() { - var _this = this; var data = this.props.p.get('operations'); - var totals = data.flatten(true).reduce(function (acc, op) { + var totals = data.toIndexedSeq().flatten(true).reduce(function (acc, op) { return acc .updateIn([op.get('account'), 'debit'], function (d) { return (d || 0) + op.get('debit', zero)(data);