fix: revert the reduce change for eslint- might be done later in other way
ref: N25B-408
This commit is contained in:
@@ -155,8 +155,8 @@ export default function BasicBeliefNode(props: NodeProps<BasicBeliefNode>) {
|
|||||||
* @param _nodes - The list of all nodes in the current flow graph.
|
* @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.
|
* @returns A simplified object containing the node label and its list of BasicBeliefs.
|
||||||
*/
|
*/
|
||||||
export function BasicBeliefReduce(node: BasicBeliefNode, _nodes: Node[]) {
|
export function BasicBeliefReduce(node: Node, _nodes: Node[]) {
|
||||||
const data = node.data;
|
const data = node.data as BasicBeliefNodeData;
|
||||||
return {
|
return {
|
||||||
id: node.id,
|
id: node.id,
|
||||||
type: data.belief.type,
|
type: data.belief.type,
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export function PhaseReduce(node: Node, nodes: Node[]) {
|
|||||||
console.warn(`No reducer found for node type ${type}`);
|
console.warn(`No reducer found for node type ${type}`);
|
||||||
result[type + "s"] = [];
|
result[type + "s"] = [];
|
||||||
} else {
|
} else {
|
||||||
result[type + "s"] = typedChildren.map((child) => reducer(child as any, nodes));
|
result[type + "s"] = typedChildren.map((child) => reducer(child, nodes));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user