Skip to content

Commit

Permalink
Merge pull request #37 from fleetbase/dev-v0.2.8
Browse files Browse the repository at this point in the history
v0.2.8
  • Loading branch information
roncodes authored Mar 15, 2024
2 parents a9766de + c59ba3c commit f01867c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions addon/services/universe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit f01867c

Please sign in to comment.