chore: correct reducing
This commit is contained in:
@@ -27,7 +27,6 @@ export type ActionTypes = "speech" | "gesture" | "llm";
|
||||
export function PlanReduce(plan?: Plan) {
|
||||
if (!plan) return ""
|
||||
return {
|
||||
name: plan.name,
|
||||
id: plan.id,
|
||||
steps: plan.steps.map((x) => StepReduce(x))
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ export function GoalReduce(node: Node, _nodes: Node[]) {
|
||||
const data = node.data as GoalNodeData;
|
||||
return {
|
||||
id: node.id,
|
||||
name: data.label,
|
||||
name: data.name,
|
||||
description: data.description,
|
||||
can_fail: data.can_fail,
|
||||
plan: data.plan ? PlanReduce(data.plan) : "",
|
||||
|
||||
Reference in New Issue
Block a user