From d2e313a588f4cae92d8e4c833777583c8ae18357 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 18 Feb 2023 12:41:26 +0100 Subject: [PATCH] Fix bug: Edit inbound --- web/html/xui/inbounds.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 5bd4c904..8b251202 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -279,7 +279,7 @@ this.showQrcode(dbInbound); break; case "edit": - this.openEditInbound(dbInbound); + this.openEditInbound(dbInbound.id); break; case "resetTraffic": this.resetTraffic(dbInbound); @@ -302,7 +302,8 @@ isEdit: false }); }, - openEditInbound(dbInbound) { + openEditInbound(dbInbound_id) { + dbInbound = this.dbInbounds.find(row => row.id === dbInbound_id); const inbound = dbInbound.toInbound(); inModal.show({ title: '{{ i18n "pages.inbounds.modifyInbound"}}',