Fix ESLint errors and bugs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Rene De Ren
2026-03-11 13:39:57 +01:00
parent 442ddc60ed
commit 68576a8a36
5 changed files with 11 additions and 7 deletions

View File

@@ -48,12 +48,13 @@ class nodeClass {
case "Dispersion":
this.source.setDispersion = msg;
break;
case 'registerChild':
case 'registerChild': {
// Register this node as a parent of the child node
const childId = msg.payload;
const childObj = this.RED.nodes.getNode(childId);
const childObj = this.RED.nodes.getNode(childId);
this.source.childRegistrationUtils.registerChild(childObj.source, msg.positionVsParent);
break;
}
default:
console.log("Unknown topic: " + msg.topic);
}
@@ -137,7 +138,7 @@ class nodeClass {
new_reactor = new Reactor_PFR(this.config);
break;
default:
console.warn("Unknown reactor type: " + uiConfig.reactor_type);
console.warn("Unknown reactor type: " + this.config.reactor_type);
}
this.source = new_reactor; // protect from reassignment