diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-08-12 16:48:24 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-08-12 16:48:24 +0300 |
| commit | ae7283fc730fd64ab91f39c2c8947efce1009525 (patch) | |
| tree | 8a798620a45e0349e62adc46936aa1b4f1acb92d /web/html | |
| parent | 51a7c56cae3a4f39b6222f652324add4c9cfe0b3 (diff) | |
fix finding client issue #884
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/xui/inbounds.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 91431b5d..0df42deb 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 = { |
