fix(ui): rebase resolution

This commit is contained in:
psychedelicious 2024-05-17 21:05:41 +10:00
parent 2680ef52c2
commit de1ea50e6d

@ -106,7 +106,7 @@ export const makeConnectionErrorSelector = (
return i18n.t('nodes.cannotConnectToDirectInput');
}
if (targetNode.data.type === 'collect' && targetFieldName === 'item') {
if (targetNode?.data.type === 'collect' && targetFieldName === 'item') {
// Collect nodes shouldn't mix and match field types
const collectItemType = getCollectItemType(templates, nodes, edges, targetNode.id);
if (collectItemType) {