Skip to content

Commit

Permalink
Fixes: Fix logic error when extraction result is "false". (#797)
Browse files Browse the repository at this point in the history
BUG when the value of arg is 'false'
  • Loading branch information
Fengrui-Liu committed Jan 29, 2024
1 parent 2c6dbe1 commit 72d1503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/app/src/service/moduleDispatch/agent/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 72d1503

Please sign in to comment.