fix(editor): Fix trigger node type identification on add to canvas (#5043)

🐛 Fix trigger node type identification on add to canvas
This commit is contained in:
Iván Ovejero 2022-12-28 10:28:42 +01:00 committed by GitHub
parent 11b75c02ea
commit 2aba0c6d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;