Browse Source

HUE-7196 [assist] Fix JS error for missing Object.values in IE 11

Johan Ahlen 8 years ago
parent
commit
97a4a06
1 changed files with 5 additions and 1 deletions
  1. 5 1
      desktop/core/src/desktop/templates/assist.mako

+ 5 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -2183,7 +2183,11 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
             });
 
             if (updateTables) {
-              var tables = Object.values(activeTableIndex);
+              var tables = [];
+              Object.keys(activeTableIndex).forEach(function (key) {
+                tables.push(activeTableIndex[key]);
+              });
+
               tables.sort(function (a, b) {
                 return a.definition.name.localeCompare(b.definition.name);
               });