Skip to content

Commit

Permalink
👌 Removing trigger pane check and leftover console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Apr 4, 2024
1 parent 9de6ba0 commit 46fea16
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 46fea16

Please sign in to comment.