Skip to content

Commit

Permalink
Server can be saved now without a password or user (#256)
Browse files Browse the repository at this point in the history
Resolves #253
  • Loading branch information
vkolmakov authored and BornaP committed Oct 13, 2016
1 parent 051b947 commit 37e8491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/server-modal-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export default class ServerModalForm extends Component {
host: state.host && state.host.length ? state.host : null,
port: state.port || state.defaultPort,
socketPath: state.socketPath && state.socketPath.length ? state.socketPath : null,
user: state.user,
password: state.password,
user: state.user || null,
password: state.password || null,
database: state.database,
};
if (!this.state.ssh) { return server; }
Expand Down

0 comments on commit 37e8491

Please sign in to comment.