Skip to content

Commit

Permalink
used db.backend
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Jun 2, 2021
1 parent 95c7f66 commit e539834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const databaseField = ({
placeholder="e.g. world_population"
label="Database name"
onChange={changeMethods.onParametersChange}
helpText="Copy the name of the PostgreSQL database you are trying to connect to."
helpText="Copy the name of the database you are trying to connect to."
/>
);
const usernameField = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
availableDbs?.databases?.find(
(available: { engine: string | undefined }) =>
// TODO: we need a centralized engine in one place
available.engine === (isEditMode && db?.parameters?.engine) ||
db?.engine,
available.engine === db?.engine || db?.backend,
) || {};
const disableSave =
!hasConnectedDb &&
Expand Down

0 comments on commit e539834

Please sign in to comment.