feat: added rule to prevent one belief being connected to both inferredBelief inputs

ref: N25B-433
This commit is contained in:
JGerla
2026-01-13 11:32:23 +01:00
parent f8f0f12128
commit 3d6e065dd5
7 changed files with 51 additions and 27 deletions

View File

@@ -9,7 +9,7 @@ import { TextField } from '../../../../components/TextField';
import {MultiConnectionHandle, SingleConnectionHandle} from "../components/RuleBasedHandle.tsx";
import {allowOnlyConnectionsFromHandle, allowOnlyConnectionsFromType} from "../HandleRules.ts";
import useFlowStore from '../VisProgStores';
import {BeliefReduce} from "./BeliefReduce.ts";
import {BeliefGlobals} from "./BeliefGlobals.ts";
/**
* The default data dot a phase node
@@ -108,7 +108,7 @@ export function NormReduce(node: Node, nodes: Node[]) {
const conditionNode = nodes.find((node) => node.id === data.condition);
// In case something went wrong, and our condition doesn't actually exist;
if (conditionNode == undefined) return result;
result["condition"] = BeliefReduce(conditionNode, nodes)
result["condition"] = BeliefGlobals(conditionNode, nodes)
}
return result
}