[frontend] Fix JS exception in jquery.hiveautocomplete when no namespaces are returned
self.namespaceDeferred.resolve(self.options.namespace);
} else {
ContextCatalog.getNamespaces({ sourceType: options.apiHelperType }).done(function (context) {
+ if (context.namespaces && context.namespaces.length) {
self.namespaceDeferred.resolve(context.namespaces[0]);
+ } else {
+ self.namespaceDeferred.reject();
+ }
})
}
self.namespaceDeferred.done(function (namespace) {
