Skip to content

Commit

Permalink
fix: Edit Modal not saving properly (#15468)
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi authored Jun 30, 2021
1 parent 4cae8cd commit f8da689
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ function dbReducer(

return {
...action.payload,
encrypted_extra: action.payload.encrypted_extra || '',
engine: action.payload.backend || trimmedState.engine,
configuration_method: action.payload.configuration_method,
extra_json: deserializeExtraJSON,
Expand Down Expand Up @@ -380,7 +381,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
database_name: db?.database_name?.trim() || undefined,
impersonate_user: db?.impersonate_user || undefined,
extra: db?.extra || undefined,
encrypted_extra: db?.encrypted_extra || undefined,
encrypted_extra: db?.encrypted_extra || '',
server_cert: db?.server_cert || undefined,
};

Expand Down Expand Up @@ -445,7 +446,6 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
'[]',
});
}
console.log(dbToUpdate.extra);

if (db?.id) {
setLoading(true);
Expand Down

0 comments on commit f8da689

Please sign in to comment.