Only process deny patterns when enableDenyPatterns is true
This commit is contained in:
parent
0abbc1eea7
commit
a745aa1097
1 changed files with 6 additions and 4 deletions
|
|
@ -218,14 +218,16 @@ export function ExecSection({ form, onFieldChange }: ExecSectionProps) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const denyPatterns = form.customDenyPatternsText
|
|
||||||
.split("\n")
|
|
||||||
.map((p) => p.trim())
|
|
||||||
.filter((p) => p.length > 0)
|
|
||||||
const allowPatterns = form.customAllowPatternsText
|
const allowPatterns = form.customAllowPatternsText
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.map((p) => p.trim())
|
.map((p) => p.trim())
|
||||||
.filter((p) => p.length > 0)
|
.filter((p) => p.length > 0)
|
||||||
|
const denyPatterns = form.enableDenyPatterns
|
||||||
|
? form.customDenyPatternsText
|
||||||
|
.split("\n")
|
||||||
|
.map((p) => p.trim())
|
||||||
|
.filter((p) => p.length > 0)
|
||||||
|
: []
|
||||||
|
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue