added better default (#27196)
fixes: #27173 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
0dadc08e2b
commit
f023314d52
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue