diff --git a/frontend/src/pages/xray/OutboundFormModal.tsx b/frontend/src/pages/xray/OutboundFormModal.tsx index 34060875..8bd90bc6 100644 --- a/frontend/src/pages/xray/OutboundFormModal.tsx +++ b/frontend/src/pages/xray/OutboundFormModal.tsx @@ -393,9 +393,8 @@ export default function OutboundFormModal({ async function onOk() { if (activeKey === '2' && !applyJsonToForm()) return; - let values: OutboundFormValues; try { - values = await form.validateFields(); + await form.validateFields(); } catch { return; } @@ -403,6 +402,7 @@ export default function OutboundFormModal({ messageApi.error('Tag already used by another outbound'); return; } + const values = form.getFieldsValue(true) as OutboundFormValues; onConfirm(formValuesToWirePayload(values)); }