Skip to content

Commit

Permalink
fix(editor): Fix trigger node type identification on add to canvas (#…
Browse files Browse the repository at this point in the history
…5043)

🐛 Fix trigger node type identification on add to canvas
  • Loading branch information
ivov authored Dec 28, 2022
1 parent 11b75c0 commit 2aba0c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/editor-ui/src/stores/nodeCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2aba0c6

Please sign in to comment.