fix: update the recducer in phases to account for node-specific reducing

ref: N25B-408
This commit is contained in:
Björn Otgaar
2025-12-15 11:59:12 +01:00
parent 10d5a15c88
commit 9d4f10213e
2 changed files with 2 additions and 2 deletions

View File

@@ -97,5 +97,5 @@ export const NodesInPhase = {
start: () => false,
end: () => false,
phase: () => false,
// basic_belief: () => false,
basic_belief: () => false,
}

View File

@@ -96,7 +96,7 @@ export function PhaseReduce(node: Node, nodes: Node[]) {
console.warn(`No reducer found for node type ${type}`);
result[type + "s"] = [];
} else {
result[type + "s"] = typedChildren.map((child) => reducer(child, nodes));
result[type + "s"] = typedChildren.map((child) => reducer(child as any, nodes));
}
});