From 4c3530365a4b807fd6b8cf39a5bba1e87f613c15 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 19 Apr 2019 15:28:32 +0200 Subject: [PATCH] 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). --- client/galaxy/scripts/mvc/workflow/workflow-terminals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/galaxy/scripts/mvc/workflow/workflow-terminals.js b/client/galaxy/scripts/mvc/workflow/workflow-terminals.js index 550149d40ba..725e36c609a 100644 --- a/client/galaxy/scripts/mvc/workflow/workflow-terminals.js +++ b/client/galaxy/scripts/mvc/workflow/workflow-terminals.js @@ -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."