Przeglądaj źródła

HUE-3195 [metastore] When setting the table name in the URL it sometimes shows the list of databases

Johan Ahlen 9 lat temu
rodzic
commit
940c887d37

+ 6 - 4
apps/metastore/src/metastore/static/metastore/js/metastore.ko.js

@@ -621,10 +621,12 @@
           setDatabaseByName(path[3]);
           setDatabaseByName(path[3]);
           break;
           break;
         case 'table':
         case 'table':
-          loadTableDef({
-            name: path[4],
-            database: path[3]
-          });
+          window.setTimeout(function() {
+            loadTableDef({
+              name: path[4],
+              database: path[3]
+            });
+          }, 200);
           break;
           break;
       }
       }
     }
     }