mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Add comment
This commit is contained in:
parent
261bd32378
commit
ffcd8aa133
|
@ -219,6 +219,8 @@ export const useActions = () => {
|
||||||
const { getByNameAndVersion } = getNodeTypes();
|
const { getByNameAndVersion } = getNodeTypes();
|
||||||
|
|
||||||
// We want to add a trigger if there are no triggers other than Manual Triggers
|
// 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 shouldAddChatTrigger = allNodes.every((node) => {
|
||||||
const nodeType = getByNameAndVersion(node.type, node.typeVersion);
|
const nodeType = getByNameAndVersion(node.type, node.typeVersion);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue