Fix bug in parent registration code block
This commit is contained in:
@@ -11,12 +11,12 @@ class ChildRegistrationUtils {
|
|||||||
|
|
||||||
this.logger.debug(`Registering child: ${name} (${id}) as ${softwareType} at ${positionVsParent}`);
|
this.logger.debug(`Registering child: ${name} (${id}) as ${softwareType} at ${positionVsParent}`);
|
||||||
|
|
||||||
|
// Enhanced child setup - optional multiple parents
|
||||||
if (Array.isArray(child.parent)) {
|
if (Array.isArray(child.parent)) {
|
||||||
child.parent.push(this.mainClass);
|
child.parent.push(this.mainClass);
|
||||||
|
} else {
|
||||||
|
child.parent = this.mainClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enhanced child setup
|
|
||||||
child.parent = this.mainClass;
|
|
||||||
child.positionVsParent = positionVsParent;
|
child.positionVsParent = positionVsParent;
|
||||||
|
|
||||||
// Enhanced measurement container with rich context
|
// Enhanced measurement container with rich context
|
||||||
|
|||||||
Reference in New Issue
Block a user