summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse_topology/webui/src/js/reducers/base-config-reducer.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse_topology/webui/src/js/reducers/base-config-reducer.js b/synapse_topology/webui/src/js/reducers/base-config-reducer.js
index 9d296a6a3a..4ed635f25c 100644
--- a/synapse_topology/webui/src/js/reducers/base-config-reducer.js
+++ b/synapse_topology/webui/src/js/reducers/base-config-reducer.js
@@ -4,6 +4,7 @@ import {
     SET_SECRET_KEY,
     GETTING_SECRET_KEY,
     SET_DELEGATION,
+    SET_DELEGATION_PORTS,
     SET_DELEGATION_SERVERNAME,
     SET_REVERSE_PROXY,
     SET_TLS,
@@ -56,16 +57,16 @@ export default (state, action) => {
                 ...state,
                 delegationType: action.delegationType,
             }
-        case SET_DELEGATION_SERVERNAME:
+        case SET_DELEGATION_PORTS:
             return {
                 ...state,
-                delegationServername: action.servername,
+                delegationFederationPort: action.federationPort,
+                delegationClientPort: action.clientPort,
             }
         case SET_DELEGATION_SERVERNAME:
             return {
                 ...state,
-                delegationFederationPort: action.federationPort,
-                delegationClientPort: action.clientPort,
+                delegationServername: action.servername,
             }
         case SET_REVERSE_PROXY:
             return {