Custom recipe: Default value not work for values from API

pobutp
pobutp Registered Posts: 2

In plugin I cannot see default value for field in recipe.json, when value comes from API.

In recipe.json I have field:

{
"name": "field",
"label": "Field",
"type": "SELECT",
"getChoicesFromPython": true,
"mandatory": true,
"defaultValue": "Default",
},

In above code default value is set to "Default", but it is not set in the UI. When values are loaded from API the value "Default" is possible to select.

When I change API response with hardcoded values, default value is working fine.
return { "choices": [{"value":"Default", "label": "Default"}, {"value": "Value2", "label": "Value2" }]}

Please help me fix it.

Setup Info
    Tags
      Help me…