You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bo...@apache.org on 2018/09/18 05:14:56 UTC
[kylin] branch 2.5.x updated: KYLIN-3527 fix hybrid couldn't save
when there is only 1 cube
This is an automated email from the ASF dual-hosted git repository.
boblu pushed a commit to branch 2.5.x
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/2.5.x by this push:
new 7e2391d KYLIN-3527 fix hybrid couldn't save when there is only 1 cube
7e2391d is described below
commit 7e2391d5785df12b379f2da808befe12e5bd3331
Author: Emiya0306 <wo...@qq.com>
AuthorDate: Wed Sep 5 10:03:13 2018 +0800
KYLIN-3527 fix hybrid couldn't save when there is only 1 cube
---
webapp/app/js/controllers/hybridInstanceSchema.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/webapp/app/js/controllers/hybridInstanceSchema.js b/webapp/app/js/controllers/hybridInstanceSchema.js
index c4f61b4..668f6dc 100644
--- a/webapp/app/js/controllers/hybridInstanceSchema.js
+++ b/webapp/app/js/controllers/hybridInstanceSchema.js
@@ -118,9 +118,8 @@ KylinApp.controller('HybridInstanceSchema', function (
var schema = getSchema();
return Object.keys(schema).every(function(key) {
- // Array.length for checking select cubes count >= 2
// otherwise checking empty value
- return schema[key] instanceof Array ? schema[key].length > 1 : schema[key];
+ return !!schema[key];
});
};