added better default (#27196)

fixes: #27173

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-02-26 08:35:06 +01:00 committed by GitHub
parent 0dadc08e2b
commit f023314d52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,12 +94,13 @@ export const AddSubFlowModal = ({
/> />
<SelectControl <SelectControl
name="type" name="type"
menuAppendTo="parent"
label={t("flowType")} label={t("flowType")}
options={types.map((type) => ({ options={types.map((type) => ({
key: type, key: type,
value: t(`flow-type.${type}`), value: t(`flow-type.${type}`),
}))} }))}
controller={{ defaultValue: "" }} controller={{ defaultValue: types[0] }}
/> />
{formProviders && formProviders.length > 1 && ( {formProviders && formProviders.length > 1 && (
<SelectControl <SelectControl