From e1132a3f416eb0a894fd2dc9aaf9e29c0d93098f Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 19 Apr 2023 11:55:38 +0330 Subject: bug fix Co-Authored-By: Alireza Ahmadi --- web/html/xui/inbounds.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 15782b1d..5bfcaccd 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -658,8 +658,8 @@ inbound = dbInbound.toInbound(); clients = this.getClients(dbInbound.protocol, inbound.settings); index = this.findIndexOfClient(clients, client); - clients[index].enable = ! clients[index].enable - await this.updateClient(inbound, dbInbound, index); + clients[index].enable = !clients[index].enable; + await this.updateClient(clients[index],dbInboundId, index); this.loading(false); }, async submit(url, data) { -- cgit v1.2.3