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 {