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:
@@ -348,8 +348,7 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, {
|
|||||||
if (!nodeType) return [];
|
if (!nodeType) return [];
|
||||||
|
|
||||||
const { workflowTriggerNodes } = useWorkflowsStore();
|
const { workflowTriggerNodes } = useWorkflowsStore();
|
||||||
const isTrigger =
|
const isTrigger = useNodeTypesStore().isTriggerNode(nodeType);
|
||||||
nodeType.toLocaleLowerCase().includes('trigger') || nodeType === WEBHOOK_NODE_TYPE;
|
|
||||||
const workflowContainsTrigger = workflowTriggerNodes.length > 0;
|
const workflowContainsTrigger = workflowTriggerNodes.length > 0;
|
||||||
const isTriggerPanel = useNodeCreatorStore().selectedType === TRIGGER_NODE_FILTER;
|
const isTriggerPanel = useNodeCreatorStore().selectedType === TRIGGER_NODE_FILTER;
|
||||||
const isStickyNode = nodeType === STICKY_NODE_TYPE;
|
const isStickyNode = nodeType === STICKY_NODE_TYPE;
|
||||||
|
|||||||
Reference in New Issue
Block a user