Skip to content

Commit 0f9441a

Browse files
Alirunwtfsayo
andauthored
Fixed bug in goal objectives update lookup logic (#2791)
Co-authored-by: Sayo <hi@sayo.wtf>
1 parent 227baf7 commit 0f9441a

File tree

1 file changed

+1
-1
lines changed
  • packages/plugin-bootstrap/src/evaluators

1 file changed

+1
-1
lines changed

packages/plugin-bootstrap/src/evaluators/goal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async function handler(
8888
...goal,
8989
...update,
9090
objectives: goal.objectives.map((objective) => {
91-
const updatedObjective = update.objectives?.find(uo => uo.id === objective.id);
91+
const updatedObjective = update.objectives?.find(uo => uo.description === objective.description);
9292
return updatedObjective ? { ...objective, ...updatedObjective } : objective;
9393
}),
9494
};

0 commit comments

Comments
 (0)