qcobjects 2.5.119-beta → 2.5.120-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Component.ts CHANGED
@@ -126,7 +126,11 @@ export class Component extends InheritClass implements IComponent {
126
126
  });
127
127
  const self = this;
128
128
 
129
- if (typeof self.name === "undefined") {
129
+ if (typeof name !== "undefined"){
130
+ self.name = name;
131
+ }
132
+
133
+ if (typeof self.name === "undefined" && typeof name === "undefined") {
130
134
  logger.warn("A name is not defined for " + __getType__(self));
131
135
  }
132
136