fix(connections): Guard against missing propert...
...ies definitions appearing in configured properties
For Salesforce OAuth dance sets the `instanceUrl` property which was not
declared in connector `properties` but was encountered in
`configuredProperties`.
Fixes
@@ -183,7 +183,9 @@ export class ConnectionViewComponent implements OnInit, OnChanges, OnDestroy {
const props = JSON.parse(JSON.stringify(connection.connector.properties));
if (connection.configuredProperties) {
Object.keys(connection.configuredProperties).forEach(key => {
+ if (props[key]) {
props[key].value = connection.configuredProperties[key];
+ }
});
} else {
connection.configuredProperties = {};
