chore: apply suggestions from threads for merge.

This commit is contained in:
Björn Otgaar
2025-11-20 14:53:42 +01:00
parent 1dfc14ede8
commit 79b645df88
8 changed files with 29 additions and 40 deletions

View File

@@ -32,8 +32,8 @@ export type GoalNode = Node<GoalNodeData>
* @param props NodeProps, like id, label, children
* @returns React.JSX.Element
*/
export default function GoalNode(props: NodeProps<Node>) {
const data = props.data as GoalNodeData;
export default function GoalNode(props: NodeProps<GoalNode>) {
const data = props.data
const {updateNodeData} = useFlowStore();
const text_input_id = `goal_${props.id}_text_input`;
@@ -76,7 +76,8 @@ export default function GoalNode(props: NodeProps<Node>) {
/**
* Reduces each Goal, including its children down into its relevant data.
* @param props: The Node Properties of this node.
* @param node: The Node Properties of this node.
* @param nodes: all the nodes in the graph
*/
export function GoalReduce(node: Node, nodes: Node[]) {
// Replace this for nodes functionality