Skip to content

Commit

Permalink
[FIX] Connect a null server (#2639)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Mello <diegolmello@gmail.com>
  • Loading branch information
djorkaeffalexandre and diegolmello authored Nov 12, 2020
1 parent 80d6e0d commit 1f74ada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/NewServerView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ class NewServerView extends React.Component {

handleNewServerEvent = (event) => {
let { server } = event;
if (!server) {
return;
}
const { connectServer } = this.props;
this.setState({ text: server });
server = this.completeUrl(server);
Expand Down

0 comments on commit 1f74ada

Please sign in to comment.