Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/inbounds.html')
-rw-r--r--web/html/inbounds.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/web/html/inbounds.html b/web/html/inbounds.html
index 830c940f..58a4e5a5 100644
--- a/web/html/inbounds.html
+++ b/web/html/inbounds.html
@@ -983,11 +983,13 @@
const list = this.clientCount[inbound.id][this.filterBy];
if (list.length > 0) {
const filteredSettings = { "clients": [] };
- inboundSettings.clients.forEach(client => {
- if (list.includes(client.email)) {
- filteredSettings.clients.push(client);
- }
- });
+ if (inboundSettings.clients) {
+ inboundSettings.clients.forEach(client => {
+ if (list.includes(client.email)) {
+ filteredSettings.clients.push(client);
+ }
+ });
+ }
newInbound.settings = Inbound.Settings.fromJson(inbound.protocol, filteredSettings);
this.searchedInbounds.push(newInbound);
}