mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
Add comment
This commit is contained in:
parent
261bd32378
commit
ffcd8aa133
|
@ -219,6 +219,8 @@ export const useActions = () => {
|
|||
const { getByNameAndVersion } = getNodeTypes();
|
||||
|
||||
// We want to add a trigger if there are no triggers other than Manual Triggers
|
||||
// Performance here should be fine as `getByNameAndVersion` fetches nodeTypes once in bulk
|
||||
// and `every` aborts on first `false`
|
||||
const shouldAddChatTrigger = allNodes.every((node) => {
|
||||
const nodeType = getByNameAndVersion(node.type, node.typeVersion);
|
||||
|
||||
|
|
Loading…
Reference in a new issue