From 31311f04e8deb273ffe556e32f089863932ead94 Mon Sep 17 00:00:00 2001 From: naumov Date: Thu, 27 Jun 2024 15:57:35 +0200 Subject: [PATCH] CB-5197 do not check configuration type for creds --- .../src/ConnectionForm/Options/ConnectionOptionsTabService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/packages/plugin-connections/src/ConnectionForm/Options/ConnectionOptionsTabService.ts b/webapp/packages/plugin-connections/src/ConnectionForm/Options/ConnectionOptionsTabService.ts index e79c0124e6..e27f29e8b3 100644 --- a/webapp/packages/plugin-connections/src/ConnectionForm/Options/ConnectionOptionsTabService.ts +++ b/webapp/packages/plugin-connections/src/ConnectionForm/Options/ConnectionOptionsTabService.ts @@ -321,7 +321,7 @@ export class ConnectionOptionsTabService extends Bootstrap { const properties = await this.getConnectionAuthModelProperties(tempConfig.authModelId, state.info); if (this.isCredentialsChanged(properties, state.config.credentials)) { - tempConfig.credentials = this.prepareDynamicProperties(properties, toJS(state.config.credentials), tempConfig.configurationType); + tempConfig.credentials = this.prepareDynamicProperties(properties, toJS(state.config.credentials)); } if (!tempConfig.saveCredentials) { @@ -358,7 +358,7 @@ export class ConnectionOptionsTabService extends Bootstrap { continue; } - const supported = propertyInfo.supportedConfigurationTypes?.some(type => type === configurationType); + const supported = configurationType === undefined || propertyInfo.supportedConfigurationTypes?.some(type => type === configurationType); if (!supported) { delete result[propertyInfo.id];