From d04789dbcbe3e2164354ea2fbde0881f98a78d64 Mon Sep 17 00:00:00 2001 From: felixindynamsoft Date: Tue, 19 Nov 2024 08:24:58 +0000 Subject: [PATCH] =?UTF-8?q?Deploy=20preview=20for=20PR=2014=20=F0=9F=9B=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pr-preview/pr-14/js/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pr-preview/pr-14/js/util.js b/pr-preview/pr-14/js/util.js index 577f5bb..d2d8da2 100644 --- a/pr-preview/pr-14/js/util.js +++ b/pr-preview/pr-14/js/util.js @@ -37,7 +37,9 @@ export function extractDocumentFields(result) { return { text: `${baseYear}${year}-${result.getFieldValue(monthField)}-${result.getFieldValue(dayField)}`, - status: [yearField, monthField, dayField].every((field) => result.getFieldValidationStatus(field)) + status: [yearField, monthField, dayField].every( + (field) => result.getFieldValidationStatus(field) === Dynamsoft.DCP.EnumValidationStatus.VS_SUCCEEDED + ) ? Dynamsoft.DCP.EnumValidationStatus.VS_SUCCEEDED : Dynamsoft.DCP.EnumValidationStatus.VS_FAILED, };