Commit 72d1503f by Fengrui Liu Committed by GitHub

Fixes: Fix logic error when extraction result is "false". (#797)

BUG when the value of arg is 'false'
parent 2c6dbe13
...@@ -69,7 +69,7 @@ export async function dispatchContentExtract(props: Props): Promise<Response> { ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment