Skip to content

Commit 2c2ee7f

Browse files
feat(ui): allow collect -> iterate connections
1 parent 50cb27c commit 2c2ee7f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

invokeai/frontend/web/src/features/nodes/store/util/validateConnectionTypes.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ import { type FieldType, isCollection, isSingle, isSingleOrCollection } from 'fe
88
* @returns True if the connection is valid, false otherwise.
99
*/
1010
export const validateConnectionTypes = (sourceType: FieldType, targetType: FieldType) => {
11-
// TODO: There's a bug with Collect -> Iterate nodes:
12-
// https://github.com/invoke-ai/InvokeAI/issues/3956
13-
// Once this is resolved, we can remove this check.
14-
if (sourceType.name === 'CollectionField' && targetType.name === 'CollectionField') {
15-
return false;
16-
}
17-
1811
if (areTypesEqual(sourceType, targetType)) {
1912
return true;
2013
}

0 commit comments

Comments
 (0)