Add comment

This commit is contained in:
Charlie Kolb 2024-11-12 15:55:42 +01:00
parent 261bd32378
commit ffcd8aa133
No known key found for this signature in database

View file

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