From c6816d253120462f38f144899a3c6be4fc87074f Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 12 Aug 2023 14:53:03 +0200 Subject: [PATCH] fix finding client issue Reference: https://github.com/MHSanaei/3x-ui/issues/884 --- web/html/xui/inbounds.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 8124e55a..e468b7d5 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -726,8 +726,7 @@ }); }, findIndexOfClient(clients, client) { - firstKey = Object.keys(client)[0]; - return clients.findIndex(c => c[firstKey] === client[firstKey]); + return clients.findIndex(item => JSON.stringify(item) === JSON.stringify(client)); }, async addClient(clients, dbInboundId) { const data = {