[FIX] Connect a null server (#2639)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-11-12 14:09:24 -03:00 committed by GitHub
parent 80d6e0d65f
commit 1f74adaff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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);