From 262c3a9d936c4e9d420a888f67c736e292baae7d Mon Sep 17 00:00:00 2001 From: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:59:53 +0200 Subject: [PATCH] Update src/ui/src/builder/useComponentActions.ts Co-authored-by: Alexandre Rousseau --- src/ui/src/builder/useComponentActions.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ui/src/builder/useComponentActions.ts b/src/ui/src/builder/useComponentActions.ts index 5c3807e2e..609e84979 100644 --- a/src/ui/src/builder/useComponentActions.ts +++ b/src/ui/src/builder/useComponentActions.ts @@ -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);