From 059e9a949475620f48572ddbd79c82f989a90ca3 Mon Sep 17 00:00:00 2001 From: George Stephanis Date: Wed, 12 Aug 2015 14:43:48 -0400 Subject: [PATCH] Better to run down here when needed. --- assets/js/admin/settings-views-html-settings-tax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/admin/settings-views-html-settings-tax.js b/assets/js/admin/settings-views-html-settings-tax.js index 2e6f752e74a..5c966d5f0d2 100644 --- a/assets/js/admin/settings-views-html-settings-tax.js +++ b/assets/js/admin/settings-views-html-settings-tax.js @@ -53,12 +53,12 @@ per_page : data.limit, page : data.page, render : function() { - var rates = _.toArray( this.model.getFilteredRates() ), + var rates = this.model.getFilteredRates(), qty_rates = rates.length, qty_pages = Math.ceil( qty_rates / this.per_page ), first_index = this.per_page * ( this.page - 1), last_index = this.per_page * this.page, - paged_rates = rates.slice( first_index, last_index ), + paged_rates = _.toArray( rates ).slice( first_index, last_index ), view = this; // Blank out the contents.