From 1f74adaff276e19e371d788e0bdc49ac0667189d Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Thu, 12 Nov 2020 14:09:24 -0300 Subject: [PATCH] [FIX] Connect a null server (#2639) Co-authored-by: Diego Mello --- app/views/NewServerView/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/NewServerView/index.js b/app/views/NewServerView/index.js index 9548e008..693bd426 100644 --- a/app/views/NewServerView/index.js +++ b/app/views/NewServerView/index.js @@ -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);