Skip to content

Commit

Permalink
fixed header validation (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavya-egov authored and jagankumar-egov committed May 21, 2024
1 parent cbd0c7e commit 12dbd6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,11 @@ const UploadData = ({ formData, onSelect, ...props }) => {
return;
}
}
if (type === "boundary" && workbook?.SheetNames?.length > 1) {
if (type === "boundary" && workbook?.SheetNames?.length > 3) {
if (!validateMultipleTargets(workbook)) {
return;
}
} else {
} else if(type !== "boundary"){
for (const header of expectedHeaders) {
if (!headersToValidate.includes(header)) {
const errorMessage = t("HCM_MISSING_HEADERS");
Expand Down

0 comments on commit 12dbd6d

Please sign in to comment.