From 15dc03408836917952d2143999add966d62c081d Mon Sep 17 00:00:00 2001 From: shats Date: Sun, 7 Dec 2025 01:26:25 +0700 Subject: [PATCH] feat: Safeguard gateway access in EditServerModal by ensuring localServer's gateways are properly initialized as an array, enhancing reliability in server configuration management. --- frontend/src/ServerManager.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ServerManager.jsx b/frontend/src/ServerManager.jsx index 22f6a2d..f735a9f 100644 --- a/frontend/src/ServerManager.jsx +++ b/frontend/src/ServerManager.jsx @@ -1544,7 +1544,7 @@ function EditServerModal({ show, server, onChange, onSave, onClose }) { <>
Шлюзы
- {gateways.map((gw, idx) => ( + {(localServer.gateways || []).map((gw, idx) => (