Set the initial value of the choice field to the default value.
[jalview.git] / 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;