Set the initial value of the choice field to the default value.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 16 Sep 2019 12:17:12 +0000 (13:17 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 16 Sep 2019 12:17:12 +0000 (13:17 +0100)
src/jalview/ws/slivkaws/SlivkaParamSet.java

index 7a55832..ed4dbd2 100644 (file)
@@ -67,7 +67,7 @@ public class SlivkaParamSet implements WsParamSetI
         ChoiceField choiceField = (ChoiceField) field;
         List<String> choices = new ArrayList<>(choiceField.getChoices());
         arg = new StringParameter(field.getName(), field.getDescription(),
-            field.isRequired(), choiceField.getDefault(), choices.get(0),
+            field.isRequired(), choiceField.getDefault(), choiceField.getDefault(),
             choices, choices
         );
         break;