From ddedadeb1f1d1e7d6f4bea0667852a06f8a62dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 28 Dec 2022 09:32:12 +0100 Subject: [PATCH] :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 6f4c384c0ae1b..cb3553b7bede8 100644 --- a/packages/editor-ui/src/stores/nodeCreator.ts +++ b/packages/editor-ui/src/stores/nodeCreator.ts @@ -339,8 +339,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;