fix(ui): default node model selection

This commit is contained in:
psychedelicious 2023-05-06 20:11:07 +10:00
parent 34f3a0f0e3
commit 027a8562d7

View File

@ -48,7 +48,10 @@ const ModelInputFieldComponent = (
};
return (
<Select onChange={handleValueChanged} value={field.value}>
<Select
onChange={handleValueChanged}
value={field.value || allModelNames[0]}
>
{allModelNames.map((option) => (
<option key={option}>{option}</option>
))}