From 90b2876867ec3f0e7a2bbb7dde6433de5c3914ad Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Tue, 22 Oct 2024 22:20:44 +0200 Subject: [PATCH] fix typo --- frontend/src/components/SubJsonExt.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SubJsonExt.vue b/frontend/src/components/SubJsonExt.vue index c44b8a1b..6c9f445a 100644 --- a/frontend/src/components/SubJsonExt.vue +++ b/frontend/src/components/SubJsonExt.vue @@ -247,7 +247,7 @@ export default { this.subJsonExt.rules.unshift({ protocol: "dns", outbound: "dns-out" }) } else { delete this.subJsonExt.dns - const ruleDnsIndex = this.subJsonExt?.rules?.findIndex((r:any) => r.protocol = "dns" && r.outbound == "dns-out") + const ruleDnsIndex = this.subJsonExt?.rules?.findIndex((r:any) => r.protocol == "dns" && r.outbound == "dns-out") if (ruleDnsIndex >= 0) this.subJsonExt.rules.splice(ruleDnsIndex,1) if (this.rules.length == 0) delete this.subJsonExt.rules }