From 72d1503fa316f903e4bcd7bd30c48ce6a3791e28 Mon Sep 17 00:00:00 2001 From: Fengrui Liu Date: Mon, 29 Jan 2024 12:03:03 +0800 Subject: [PATCH] Fixes: Fix logic error when extraction result is "false". (#797) BUG when the value of arg is 'false' --- projects/app/src/service/moduleDispatch/agent/extract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/app/src/service/moduleDispatch/agent/extract.ts b/projects/app/src/service/moduleDispatch/agent/extract.ts index 46f5945bc..2a57a292d 100644 --- a/projects/app/src/service/moduleDispatch/agent/extract.ts +++ b/projects/app/src/service/moduleDispatch/agent/extract.ts @@ -69,7 +69,7 @@ export async function dispatchContentExtract(props: Props): Promise { } // 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) {