From 578e0c875932fc8a6c8c3ae8496e17daf3273014 Mon Sep 17 00:00:00 2001 From: serogaq <36307024+serogaq@users.noreply.github.com> Date: Wed, 5 Mar 2025 20:38:23 +0300 Subject: [PATCH] fix undefined clientSettings / clientStats --- web/html/xui/inbound_info_modal.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index d9913f32..fce87066 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -477,9 +477,9 @@ this.dbInbound = new DBInbound(dbInbound); this.clientSettings = this.inbound.clients ? this.inbound.clients[index] : null; this.isExpired = this.inbound.clients ? this.inbound.isExpiry(index) : this.dbInbound.isExpiry; - this.clientStats = this.inbound.clients ? this.dbInbound.clientStats.find(row => row.email === this.clientSettings.email) : []; + this.clientStats = this.inbound.clients ? this.dbInbound.clientStats.find(row => row.email === (this.clientSettings.email ?? '-')) : []; - if (app.ipLimitEnable && this.clientSettings.limitIp) { + if (app.ipLimitEnable && this.clientSettings.limitIp && this.clientStats !== undefined) { refreshIPs(this.clientStats.email).then((ips) => { this.clientIps = ips; })