diff options
author | Jorik Schellekens <joriks@matrix.org> | 2019-08-16 17:30:34 +0100 |
---|---|---|
committer | Jorik Schellekens <joriks@matrix.org> | 2019-08-28 15:59:54 +0100 |
commit | d48a316a5544f16116545c7e1f2ba865d410fafa (patch) | |
tree | b55adf8060db6ace6d60eae0fa79a8fbb79dd3d1 /synapse_topology/webui | |
parent | Clickable (diff) | |
download | synapse-d48a316a5544f16116545c7e1f2ba865d410fafa.tar.xz |
Synapse port bug
Diffstat (limited to 'synapse_topology/webui')
-rw-r--r-- | synapse_topology/webui/src/js/components/PortSelection.jsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/synapse_topology/webui/src/js/components/PortSelection.jsx b/synapse_topology/webui/src/js/components/PortSelection.jsx index 375a7f4c6a..d9c371949d 100644 --- a/synapse_topology/webui/src/js/components/PortSelection.jsx +++ b/synapse_topology/webui/src/js/components/PortSelection.jsx @@ -30,8 +30,8 @@ export default ({ } - const [fedPort, setFedPort] = useState(defaultFedPort); - const [clientPort, setClientPort] = useState(defaultClientPort); + const [fedPort, setFedPort] = useState(); + const [clientPort, setClientPort] = useState(); const [clientPortValid, setClientPortValid] = useState(true) const [fedPortValid, setFedPortValid] = useState(true) @@ -144,7 +144,11 @@ export default ({ <div> <button disabled={clientPortValid && fedPortValid ? undefined : true} - onClick={() => onClick(parseInt(fedPort), parseInt(clientPort), toggle)} + onClick={() => onClick( + fedPort ? parseInt(fedPort) : defaultFedPort, + clientPort ? parseInt(clientPort) : defaultClientPort, + toggle, + )} >Verify These Ports</button> </div> </Card.Body> |