Skip to content

Commit c5b18f5

Browse files
author
Mark Robinson
committed
Change main workflow to what we first come across, from last
1 parent 10c859b commit c5b18f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/commonwl/viewer/domain/CWLCollection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ private void findMainWorkflow() {
132132
// TODO: Consider relationship between run: parameters to better discover this
133133
for (int i=0; i < cwlDocs.size(); i++) {
134134
if (cwlDocs.get(i).get("class").asText().equals("Workflow")) {
135-
mainWorkflowIndex = i;
135+
mainWorkflowIndex = 0;
136+
return;
136137
}
137138
}
138139
}

0 commit comments

Comments
 (0)