Fix bug: Edit inbound

This commit is contained in:
Alireza Ahmadi
2023-02-18 12:41:26 +01:00
parent 35de896e5e
commit d2e313a588

View File

@@ -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"}}',