message: Closes Updating an existing global connection BUG.
diff: @@ -344,6 +344,12 @@ export default class SettingsScreen extends React.Component<{}, SetupState> {
  value: conn.dialect,
  name: 'dialect',
  });
  + if (conn.port) {
  + await this.updateField({
  + value: conn.port,
  + name: 'port',
  + });
  + }
  if (conn.socketPath) {
  await this.updateField({
  value: ConnectionMethod.Socket,
  @@ -362,12 +368,12 @@ export default class SettingsScreen extends React.Component<{}, SetupState> {
  }
  - if (conn.database) {
  + // if (conn.database) {
  // await this.updateField({
  // value: conn.database,
  // name: 'database',
  // });
  - }
  + // }
  // Object.keys(this.baseFields).forEach(async (name) => {
  // if (typeof conn[name] === 'undefined') return;
  // await this.updateField({
  @@ -468,7 +474,10 @@ export default class SettingsScreen extends React.Component<{}, SetupState> {
  const newData = { ...this.state.data, [name]: value };
  return new Promise((resolve) => {
  this.setState({ data: newData, saved: null, onSaveError: null }, () => {
  - if (!this.state.fields[name].postUpdateHook) return this.validateFields();
  + if (!this.state.fields[name].postUpdateHook) {
  + this.validateFields();
  + return resolve();
  + };
  this.state.fields[name].postUpdateHook();
  this.validateFields();
  return resolve();
  