fix(frontend): removing default plugin issue

This commit is contained in:
yassinedorbozgithub 2024-10-26 21:55:56 +01:00
parent 6b387b826b
commit a79076aa68

View File

@ -118,7 +118,7 @@ const SettingInput: React.FC<RenderSettingInputProps> = ({
label={t("label.fallback_block")}
helperText={t("help.fallback_block")}
multiple={false}
onChange={(_e, selected, ..._) => onChange(selected?.id)}
onChange={(_e, selected, ..._) => onChange(selected?.id || null)}
{...rest}
/>
);
@ -135,7 +135,7 @@ const SettingInput: React.FC<RenderSettingInputProps> = ({
label={t("label.default_nlu_helper")}
helperText={t("help.default_nlu_helper")}
multiple={false}
onChange={(_e, selected, ..._) => onChange(selected?.name)}
onChange={(_e, selected, ..._) => onChange(selected?.name || null)}
{...rest}
/>
);
@ -152,7 +152,7 @@ const SettingInput: React.FC<RenderSettingInputProps> = ({
label={t("label.default_llm_helper")}
helperText={t("help.default_llm_helper")}
multiple={false}
onChange={(_e, selected, ..._) => onChange(selected?.name)}
onChange={(_e, selected, ..._) => onChange(selected?.name || null)}
{...rest}
/>
);