Fixes: Fix logic error when extraction result is "false". (#797)
BUG when the value of arg is 'false'
This commit is contained in:
parent
2c6dbe13d9
commit
72d1503fa3
@ -69,7 +69,7 @@ export async function dispatchContentExtract(props: Props): Promise<Response> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// auth fields
|
// auth fields
|
||||||
let success = !extractKeys.find((item) => !arg[item.key]);
|
let success = !extractKeys.find((item) => !(item.key in arg));
|
||||||
// auth empty value
|
// auth empty value
|
||||||
if (success) {
|
if (success) {
|
||||||
for (const key in arg) {
|
for (const key in arg) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user