From f653a1e98c38c68ad6fcac551355e3f20121239a Mon Sep 17 00:00:00 2001 From: "p.vanderwilt" Date: Fri, 24 Oct 2025 13:37:26 +0200 Subject: [PATCH] Refactor child setup to support multiple parents consistently --- src/helper/childRegistrationUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helper/childRegistrationUtils.js b/src/helper/childRegistrationUtils.js index 4beeea5..aee60da 100644 --- a/src/helper/childRegistrationUtils.js +++ b/src/helper/childRegistrationUtils.js @@ -11,11 +11,11 @@ class ChildRegistrationUtils { this.logger.debug(`Registering child: ${name} (${id}) as ${softwareType} at ${positionVsParent}`); - // Enhanced child setup - optional multiple parents + // Enhanced child setup - multiple parents if (Array.isArray(child.parent)) { child.parent.push(this.mainClass); } else { - child.parent = this.mainClass; + child.parent = [this.mainClass]; } child.positionVsParent = positionVsParent;