Skip to content

Commit

Permalink
Update src/ui/src/builder/useComponentActions.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Rousseau <[email protected]>
  • Loading branch information
ramedina86 and madeindjs authored Sep 30, 2024
1 parent cde86a1 commit 262c3a9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ui/src/builder/useComponentActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,11 +729,9 @@ export function useComponentActions(wf: Core, ssbm: BuilderManager) {
ssbm.openMutationTransaction(transactionId, `Edit out`, true);
ssbm.registerPreMutation(component);

component.outs = [
...component.outs.filter(
(o) => !(out.outId === o.outId && out.toNodeId === o.toNodeId),
),
];
component.outs = component.outs.filter(
(o) => !(out.outId === o.outId && out.toNodeId === o.toNodeId),
);

ssbm.registerPostMutation(component);
ssbm.closeMutationTransaction(transactionId);
Expand Down

0 comments on commit 262c3a9

Please sign in to comment.