This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit c7b6229a0eaca590dad2ea4bcfefc4132280c7d9 Author: Wuzi <[email protected]> AuthorDate: Mon Jul 15 17:18:35 2024 +0800 Determine if default values need to be changed by db_type --- ui/src/pages/Install/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/Install/index.tsx b/ui/src/pages/Install/index.tsx index f9dedeca..22db544f 100644 --- a/ui/src/pages/Install/index.tsx +++ b/ui/src/pages/Install/index.tsx @@ -132,7 +132,7 @@ const Index: FC = () => { }); const updateFormData = (params: FormDataType) => { - if (step === 2) { + if (Object.keys(params)?.[0] === 'db_type') { let updatedFormData = formData; if (params.db_type.value === 'mysql') { updatedFormData = {
