[core] Fix empty catalog list in table browser.
@@ -75,6 +75,7 @@ var MetastoreViewModel = (function () {
}))
}
});
+ if (clusterConfig.app_config.catalogs) {
clusterConfig.app_config.catalogs.forEach(function (interpreter) {
sources.push(new MetastoreSource({
metastoreViewModel: self,
@@ -82,6 +83,7 @@ var MetastoreViewModel = (function () {
type: interpreter.type
}))
});
+ }
if (!sources.length) {
sources.push(new MetastoreSource({
metastoreViewModel: self,
