feat: merged demo into dev #43

Merged
j.gerla merged 61 commits from demo into dev 2026-01-20 11:11:09 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit f22fe38e22 - Show all commits

View File

@@ -155,8 +155,8 @@ export default function BasicBeliefNode(props: NodeProps<BasicBeliefNode>) {
* @param _nodes - The list of all nodes in the current flow graph.
* @returns A simplified object containing the node label and its list of BasicBeliefs.
*/
export function BasicBeliefReduce(node: BasicBeliefNode, _nodes: Node[]) {
const data = node.data;
export function BasicBeliefReduce(node: Node, _nodes: Node[]) {
const data = node.data as BasicBeliefNodeData;
return {
id: node.id,
type: data.belief.type,

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 as any, nodes));
result[type + "s"] = typedChildren.map((child) => reducer(child, nodes));
}
});