From 2aba0c6d47d6d87038db6877a29e15ed079d712b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 28 Dec 2022 10:28:42 +0100 Subject: [PATCH] fix(editor): Fix trigger node type identification on add to canvas (#5043) :bug: Fix trigger node type identification on add to canvas --- packages/editor-ui/src/stores/nodeCreator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor-ui/src/stores/nodeCreator.ts b/packages/editor-ui/src/stores/nodeCreator.ts index 78cf332317..c1cd5bacb2 100644 --- a/packages/editor-ui/src/stores/nodeCreator.ts +++ b/packages/editor-ui/src/stores/nodeCreator.ts @@ -348,8 +348,7 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, { if (!nodeType) return []; const { workflowTriggerNodes } = useWorkflowsStore(); - const isTrigger = - nodeType.toLocaleLowerCase().includes('trigger') || nodeType === WEBHOOK_NODE_TYPE; + const isTrigger = useNodeTypesStore().isTriggerNode(nodeType); const workflowContainsTrigger = workflowTriggerNodes.length > 0; const isTriggerPanel = useNodeCreatorStore().selectedType === TRIGGER_NODE_FILTER; const isStickyNode = nodeType === STICKY_NODE_TYPE;