Skip to content

Commit

Permalink
Determine if default values need to be changed by db_type
Browse files Browse the repository at this point in the history
  • Loading branch information
obiscr authored and shuashuai committed Jul 16, 2024
1 parent 2f3d991 commit 9d70bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/pages/Install/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 9d70bf9

Please sign in to comment.