From a745aa1097196ebca6f623708cc91fcc1c544fd5 Mon Sep 17 00:00:00 2001 From: uiyzzi Date: Wed, 25 Mar 2026 10:13:41 +0800 Subject: [PATCH] Only process deny patterns when enableDenyPatterns is true --- web/frontend/src/components/config/config-sections.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/frontend/src/components/config/config-sections.tsx b/web/frontend/src/components/config/config-sections.tsx index d33420b46..1f7426d22 100644 --- a/web/frontend/src/components/config/config-sections.tsx +++ b/web/frontend/src/components/config/config-sections.tsx @@ -218,14 +218,16 @@ export function ExecSection({ form, onFieldChange }: ExecSectionProps) { return } - const denyPatterns = form.customDenyPatternsText - .split("\n") - .map((p) => p.trim()) - .filter((p) => p.length > 0) const allowPatterns = form.customAllowPatternsText .split("\n") .map((p) => p.trim()) .filter((p) => p.length > 0) + const denyPatterns = form.enableDenyPatterns + ? form.customDenyPatternsText + .split("\n") + .map((p) => p.trim()) + .filter((p) => p.length > 0) + : [] setIsLoading(true) try {