Skip to content

Commit

Permalink
Fix a bug where some optional objectives got lost.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: f4c8c5cd9d5dfa0090639a539b13dc715136b86e
  • Loading branch information
cpojer committed Nov 18, 2024
1 parent c3cdff6 commit d36ae8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hera/editor/panels/ObjectivePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ const maybeSwapEffect = (

const newEffects = new Map(effects);
if (target) {
newEffects.set(newTrigger, new Set(target));
newEffects.set(
newTrigger,
new Set([...(newEffects.get(newTrigger) || []), ...target]),
);
}

const origin = partition.get('origin');
Expand Down

0 comments on commit d36ae8d

Please sign in to comment.