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

BUG when the value of arg is 'false'
This commit is contained in:
Fengrui Liu
2024-01-29 12:03:03 +08:00
committed by GitHub
parent 2c6dbe13d9
commit 72d1503fa3

View File

@@ -69,7 +69,7 @@ export async function dispatchContentExtract(props: Props): Promise<Response> {
}
// auth fields
let success = !extractKeys.find((item) => !arg[item.key]);
let success = !extractKeys.find((item) => !(item.key in arg));
// auth empty value
if (success) {
for (const key in arg) {