From 2b4e402e3dad68c8b87cb4502c1b01af517fe803 Mon Sep 17 00:00:00 2001 From: Wroud Date: Wed, 3 Mar 2021 13:56:07 +0300 Subject: [PATCH] fix(core-connections): CB-638 empty SSH fields --- .../src/ConnectionForm/SSH/ConnectionSSHTabService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/packages/core-connections/src/ConnectionForm/SSH/ConnectionSSHTabService.ts b/webapp/packages/core-connections/src/ConnectionForm/SSH/ConnectionSSHTabService.ts index 9138d7469d..fced3f5b18 100644 --- a/webapp/packages/core-connections/src/ConnectionForm/SSH/ConnectionSSHTabService.ts +++ b/webapp/packages/core-connections/src/ConnectionForm/SSH/ConnectionSSHTabService.ts @@ -114,8 +114,8 @@ export class ConnectionSSHTabService extends Bootstrap { private isChanged(handler: NetworkHandlerConfigInput, info?: DatabaseConnection) { const initialConfig = info?.networkHandlersConfig.find(h => h.id === handler.id); - const port = Number(initialConfig?.properties.port); - const formPort = Number(handler.properties.port); + const port = Number(initialConfig?.properties?.port); + const formPort = Number(handler.properties?.port); if (handler.enabled !== initialConfig?.enabled || handler.savePassword !== initialConfig?.savePassword || handler.userName !== initialConfig?.userName @@ -123,7 +123,7 @@ export class ConnectionSSHTabService extends Bootstrap { (initialConfig?.password === null && handler.password !== '') || (handler.password?.length || 0) > 0 ) - || handler.properties.host !== initialConfig?.properties.host + || handler.properties?.host !== initialConfig?.properties?.host || port !== formPort) { return true; }