mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
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
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue