mirror of
https://github.com/hexastack/hexabot
synced 2024-11-23 01:55:15 +00:00
fix(frontend): removing default plugin issue
This commit is contained in:
parent
6b387b826b
commit
a79076aa68
@ -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}
|
||||
/>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user