From 866b0852545a570c8a0a589a5e49c950f9aad250 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 27 Feb 2024 12:56:06 +0000 Subject: [PATCH] 10489 unable to submit on submission of case --- components/utils/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/utils/index.js b/components/utils/index.js index 085cbde8..ef279b0f 100644 --- a/components/utils/index.js +++ b/components/utils/index.js @@ -228,8 +228,14 @@ export const getProgressObj = ( "totalFields": formObj[key].fieldsTotal, "allFieldsComplete": titleList[key].value == "Upload documents" - ? _.has(props.props.appealType.fileList, "value") && - props.props.appealType.fileList.value.length > 0 + ? (_.has(props.props.appealType.fileList, "value") && + props.props.appealType.fileList.value.length > + 0) || + (_.has(props.props.form.appealForm, "values") && + Object.keys( + props.props.form.appealForm.values + ).filter((k) => k.startsWith("pinswg_fileUpload")) + .length > 0) : rowCount == formObj[key].fieldsTotal, }; });