This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 116fcc12a655b12c032526eb2f7b6788411f25a8
Author: Kehua Wu <[email protected]>
AuthorDate: Mon Sep 30 09:56:46 2019 +0800

    KYLIN-4183 Clicking 'Submit' button is unresponsive, when the segment is 
not selected.
---
 webapp/app/js/controllers/cubes.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webapp/app/js/controllers/cubes.js 
b/webapp/app/js/controllers/cubes.js
index 7032016..084b74e 100644
--- a/webapp/app/js/controllers/cubes.js
+++ b/webapp/app/js/controllers/cubes.js
@@ -862,7 +862,7 @@ var lookupRefreshCtrl = function($scope, scope, CubeList, 
$modalInstance, CubeSe
         SweetAlert.swal('Warning', 'Lookup table not existed in cube', 
'warning');
         return;
       } else {
-        if ($scope.lookup.select.segments.length == 0) {
+        if (!$scope.lookup.select.segments || 
$scope.lookup.select.segments.length == 0) {
           SweetAlert.swal('Warning', 'Segment should not be empty', 'warning');
           return;
         }

Reply via email to