mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-13 16:18:51 +08:00
CB-4187 keep empty properties for test purpose (#2136)
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
+8
-6
@@ -115,7 +115,7 @@ export class ConnectionSSLTabService extends Bootstrap {
|
||||
configuration.include('includeNetworkHandlersConfig');
|
||||
}
|
||||
|
||||
private async prepareConfig({ state }: IConnectionFormSubmitData, contexts: IExecutionContextProvider<IConnectionFormSubmitData>) {
|
||||
private async prepareConfig({ state, submitType }: IConnectionFormSubmitData, contexts: IExecutionContextProvider<IConnectionFormSubmitData>) {
|
||||
const config = contexts.getContext(connectionConfigContext);
|
||||
const credentialsState = contexts.getContext(connectionCredentialsStateContext);
|
||||
|
||||
@@ -168,12 +168,14 @@ export class ConnectionSSLTabService extends Bootstrap {
|
||||
}
|
||||
}
|
||||
|
||||
if (Object.keys(handlerConfig.secureProperties).length === 0) {
|
||||
delete handlerConfig.secureProperties;
|
||||
}
|
||||
if (submitType === 'submit') {
|
||||
if (Object.keys(handlerConfig.secureProperties).length === 0) {
|
||||
delete handlerConfig.secureProperties;
|
||||
}
|
||||
|
||||
if (Object.keys(handlerConfig.properties).length === 0) {
|
||||
delete handlerConfig.properties;
|
||||
if (Object.keys(handlerConfig.properties).length === 0) {
|
||||
delete handlerConfig.properties;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user