diff --git a/addon/services/universe.js b/addon/services/universe.js index 23ddae4..c2f17b0 100644 --- a/addon/services/universe.js +++ b/addon/services/universe.js @@ -592,10 +592,15 @@ export default class UniverseService extends Service.extend(Evented) { // register to registry const internalRegistryName = this.createInternalRegistryName(registryName); - if (isArray(this[internalRegistryName].renderableComponents)) { - this[internalRegistryName].renderableComponents.pushObject(component); + if (!isBlank(this[internalRegistryName])) { + if (isArray(this[internalRegistryName].renderableComponents)) { + this[internalRegistryName].renderableComponents.pushObject(component); + } else { + this[internalRegistryName].renderableComponents = [component]; + } } else { - this[internalRegistryName].renderableComponents = [component]; + this.createRegistry(registryName); + return this.registerRenderableComponent(...arguments); } } diff --git a/package.json b/package.json index d1c5978..b43a24a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fleetbase/ember-core", - "version": "0.2.7", + "version": "0.2.8", "description": "Provides all the core services, decorators and utilities for building a Fleetbase extension for the Console.", "keywords": [ "fleetbase-core",