From 18140e059bd95d51ad24a4ef4d6e6c72ce3137f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 27 Dec 2022 17:25:02 +0100 Subject: [PATCH] fix(editor): Add sticky note without manual trigger (#5039) :bug: Add sticky note without manual trigger --- packages/editor-ui/src/stores/nodeCreator.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/stores/nodeCreator.ts b/packages/editor-ui/src/stores/nodeCreator.ts index caff3a5d4e..6f4c384c0a 100644 --- a/packages/editor-ui/src/stores/nodeCreator.ts +++ b/packages/editor-ui/src/stores/nodeCreator.ts @@ -17,6 +17,7 @@ import { CALENDLY_TRIGGER_NODE_TYPE, TRIGGER_NODE_FILTER, WEBHOOK_NODE_TYPE, + STICKY_NODE_TYPE, } from '@/constants'; import { useNodeTypesStore } from '@/stores/nodeTypes'; import { useWorkflowsStore } from './workflows'; @@ -342,9 +343,10 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, { nodeType.toLocaleLowerCase().includes('trigger') || nodeType === WEBHOOK_NODE_TYPE; const workflowContainsTrigger = workflowTriggerNodes.length > 0; const isTriggerPanel = useNodeCreatorStore().selectedType === TRIGGER_NODE_FILTER; + const isStickyNode = nodeType === STICKY_NODE_TYPE; const nodeTypes = - !isTrigger && !workflowContainsTrigger && isTriggerPanel + !isTrigger && !workflowContainsTrigger && isTriggerPanel && !isStickyNode ? [MANUAL_TRIGGER_NODE_TYPE, nodeType] : [nodeType];