[frontend] Don't show namespaces without a name
@@ -113,7 +113,9 @@ var ContextCatalog = (function () {
var namespaces = namespaces[options.sourceType];
var dynamic = true; //namespaces.hasMultiCluster;
if (namespaces) {
- self.namespaces[options.sourceType] = { namespaces: namespaces, dynamic: dynamic };
+ self.namespaces[options.sourceType] = { namespaces: namespaces.filter(function (namespace) {
+ return namespace.name; // Only include namespaces with a name.
+ }), dynamic: dynamic };
deferred.resolve(self.namespaces[options.sourceType]);
if (notifyForRefresh) {
huePubSub.publish('context.catalog.namespaces.refreshed', options.sourceType);
