kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject incubator-kylin git commit: KYLIN-946, check project when refresh query page
Date Mon, 02 Nov 2015 06:31:17 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-staging bff402f46 -> d7a37e041


KYLIN-946, check project when refresh query page


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/d7a37e04
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/d7a37e04
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/d7a37e04

Branch: refs/heads/1.x-staging
Commit: d7a37e041f5130c261a1dc3191caa3549b345ce4
Parents: bff402f
Author: jiazhong <jiazhong@ebay.com>
Authored: Mon Nov 2 14:30:57 2015 +0800
Committer: jiazhong <jiazhong@ebay.com>
Committed: Mon Nov 2 14:30:57 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/projectMeta.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/d7a37e04/webapp/app/js/controllers/projectMeta.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/projectMeta.js b/webapp/app/js/controllers/projectMeta.js
index ff4d594..0cc5ac4 100644
--- a/webapp/app/js/controllers/projectMeta.js
+++ b/webapp/app/js/controllers/projectMeta.js
@@ -48,8 +48,11 @@ KylinApp
     $scope.projectMetaLoad = function () {
       var defer = $q.defer();
       $scope.selectedSrcDb = [];
+      if(!$scope.projectModel.getSelectedProject()) {
+        return;
+      }
       $scope.loading = true;
-      QueryService.getTables({project: $scope.projectModel.selectedProject}, {}, function
(tables) {
+      QueryService.getTables({project: $scope.projectModel.getSelectedProject()}, {}, function
(tables) {
         var tableMap = [];
         angular.forEach(tables, function (table) {
           if (!tableMap[table.table_SCHEM]) {


Mime
View raw message