fix(core-connections): CB-511 empty credentials for new connection

This commit is contained in:
Wroud
2020-11-21 11:28:04 +03:00
parent 18098d2f75
commit 25945f95ed
@@ -39,11 +39,11 @@ implements IInitializableController {
return this.dbAuthModelsResource.isLoading();
}
@computed get properties(): ObjectPropertyInfo[] {
if (this.model.connection.authProperties) {
@computed get properties(): ObjectPropertyInfo[] | undefined {
if (this.model.connection.authProperties.length) {
return this.model.connection.authProperties;
}
return this.authModel?.properties || [];
return this.authModel?.properties;
}
private model!: IConnectionFormModel;