Make paired check more defensive

This was erroring out if the collectionType wasn't set. This was causing
some weird dragging of the parameter (with the exception in the browser
console).
This commit is contained in:
mvdbeek
2019-04-19 15:33:19 +02:00
parent 93da1fc0bd
commit 4c3530365a
@@ -426,7 +426,7 @@ var InputTerminal = BaseInputTerminal.extend({
"Cannot attach collections to data parameters with individual data inputs already attached."
);
}
if (otherCollectionType.collectionType.endsWith("paired")) {
if (otherCollectionType.collectionType && otherCollectionType.collectionType.endsWith("paired")) {
return new ConnectionAcceptable(
false,
"Cannot attach paired inputs to multiple data parameters, only lists may be treated this way."