From 46fea1662bd7ba1140bf8113ba6fcda4497347eb Mon Sep 17 00:00:00 2001 From: Milorad Filipovic Date: Thu, 4 Apr 2024 09:23:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20Removing=20trigger=20pane=20chec?= =?UTF-8?q?k=20and=20leftover=20console.log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Node/NodeCreator/composables/useActions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/editor-ui/src/components/Node/NodeCreator/composables/useActions.ts b/packages/editor-ui/src/components/Node/NodeCreator/composables/useActions.ts index 3b92a5d90bc56..3a49ff03e149c 100644 --- a/packages/editor-ui/src/components/Node/NodeCreator/composables/useActions.ts +++ b/packages/editor-ui/src/components/Node/NodeCreator/composables/useActions.ts @@ -168,10 +168,8 @@ export const useActions = () => { * In this case, we should connect the trigger with the following node */ function shouldConnectWithExistingTrigger(addedNodes: AddedNode[]): boolean { - const { selectedView } = useNodeCreatorStore(); - if (selectedView === TRIGGER_NODE_CREATOR_VIEW && addedNodes.length === 2) { + if (addedNodes.length === 2) { const isTriggerNode = useNodeTypesStore().isTriggerNode(addedNodes[0].type); - console.log('isTriggerNode', isTriggerNode, addedNodes[0].type); return isTriggerNode; } return false;