We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d945e commit b34d9b6Copy full SHA for b34d9b6
src/core/component.ts
@@ -189,11 +189,9 @@ export abstract class Component {
189
public _getName(): string {
190
let name;
191
192
- if (this instanceof App) {
+ if (this instanceof Component) {
193
name = this._name;
194
- } else {
195
- name = Component.keyOfMatchingEntry(this, this._container);
196
- }
+ }
197
198
if (name === "" && this instanceof IOPort) {
199
name = Component.keyOfMatchingMultiport(this, this._container);
@@ -203,7 +201,7 @@ export abstract class Component {
203
201
name = Component.keyOfMatchingBank(this, this._container);
204
202
}
205
206
- if (name !== "") {
+ if (name != null && name !== "") {
207
return name;
208
} else {
209
return this.constructor.name;
0 commit comments