luguosheng1314 closed pull request #234: KYLIN-3527 fix hybrid couldn't save
when there is only 1 cube
URL: https://github.com/apache/kylin/pull/234
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/webapp/app/js/controllers/hybridInstanceSchema.js
b/webapp/app/js/controllers/hybridInstanceSchema.js
index c4f61b496a..668f6dcc78 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];
});
};
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services