浏览代码

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

Johan Ahlen 9 年之前
父节点
当前提交
940c887
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      apps/metastore/src/metastore/static/metastore/js/metastore.ko.js

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

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