FIX: less fancy pages computation for browser compatibility (#6823)

FIX: less fancy pages computation for browser compatibility (#6823)

diff --git a/app/assets/javascripts/admin/components/admin-report-table.js.es6 b/app/assets/javascripts/admin/components/admin-report-table.js.es6
index bf1ea4e..7f75af9 100644
--- a/app/assets/javascripts/admin/components/admin-report-table.js.es6
+++ b/app/assets/javascripts/admin/components/admin-report-table.js.es6
@@ -106,7 +106,12 @@ export default Ember.Component.extend({
   pages(data, perPage, page) {
     if (!data || data.length <= perPage) return [];
 
-    let pages = [...Array(Math.ceil(data.length / perPage)).keys()].map(v => {
+    const pagesIndexes = [];
+    for (let i = 0; i < Math.ceil(data.length / perPage); i++) {
+      pagesIndexes.push(i);
+    }
+
+    let pages = pagesIndexes.map(v => {
       return {
         page: v + 1,
         index: v,

GitHub
sha: 0f09cb50

1 Like