diff --git a/console/src/components/Services/Data/Schema/AddDataSource.tsx b/console/src/components/Services/Data/Schema/AddDataSource.tsx index 7d6c06b4dc0..73b302bab45 100644 --- a/console/src/components/Services/Data/Schema/AddDataSource.tsx +++ b/console/src/components/Services/Data/Schema/AddDataSource.tsx @@ -6,30 +6,6 @@ import DropdownButton from '../../../Common/DropdownButton/DropdownButton'; import CollapsibleToggle from '../../../Common/CollapsibleToggle/CollapsibleToggle'; import { DataSource } from '../../../../metadata/types'; -// const customSelectBoxStyles = { -// control: { -// height: '34px', -// minHeight: '34px !important', -// }, -// container: { -// width: '156px', -// height: '34px', -// minHeight: '34px !important', -// }, -// dropdownIndicator: { -// padding: '5px', -// }, -// placeholder: { -// top: '50%', -// fontSize: '12px', -// }, -// singleValue: { -// fontSize: '12px', -// top: '44%', -// color: '#555555', -// }, -// }; - type AddDataSourceProps = { onSubmit(data: DataSource, successCallback: () => void): void; }; @@ -49,9 +25,11 @@ const AddDataSource = ({ onSubmit }: AddDataSourceProps) => { { name: databaseName.trim(), driver: 'postgres', - fromEnv: urlType === 'from-env', connection_pool_settings: retryConf, - url: databaseUrl.trim(), + url: + urlType === 'from-env' + ? { from_env: databaseUrl.trim() } + : databaseUrl.trim(), }, () => { setDatabaseUrl(''); @@ -66,19 +44,6 @@ const AddDataSource = ({ onSubmit }: AddDataSourceProps) => { const expandedContent = () => (