[metadata] Fix the assist search result context popover in the Impala editor
@@ -1346,6 +1346,10 @@ var ApiHelper = (function () {
var clonedIdentifierChain = options.identifierChain.concat();
var hierarchy = '';
+
+ self.loadDatabases({
+ sourceType: options.sourceType,
+ successCallback: function () {
if (! self.containsDatabase(options.sourceType, clonedIdentifierChain[0].name)) {
hierarchy = options.defaultDatabase;
} else {
@@ -1394,6 +1398,10 @@ var ApiHelper = (function () {
url: url,
fetchFunction: fetchFunction
}));
+ },
+ silenceErrors: options.silenceErrors,
+ errorCallback: options.errorCallback
+ });
};
/**
