From f371d3f7094086ae183b3abc9cb3dc38ff361886 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 3 May 2018 16:00:35 -0400 Subject: [PATCH] RuleBuilder - Fix paired identifier casting issue. --- client/galaxy/scripts/components/RuleCollectionBuilder.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/galaxy/scripts/components/RuleCollectionBuilder.vue b/client/galaxy/scripts/components/RuleCollectionBuilder.vue index 05e0b78588d..d5c8ace791f 100644 --- a/client/galaxy/scripts/components/RuleCollectionBuilder.vue +++ b/client/galaxy/scripts/components/RuleCollectionBuilder.vue @@ -1490,7 +1490,10 @@ export default { identifierColumnIndex < numIdentifierColumns; identifierColumnIndex++ ) { - let identifier = rowData[identifierColumns[identifierColumnIndex]]; + // typeof indicates identifier is a string, but the raw string value coming from this data + // structure sometimes does not work as expected with indexOf below, I don't understand why + // but as a result this cast here seems needed. + let identifier = String(rowData[identifierColumns[identifierColumnIndex]]); if (identifierColumnIndex + 1 == numIdentifierColumns) { // At correct final position in nested structure for this dataset. if (collectionTypeAtDepth === "paired") {