Skip to content

Commit

Permalink
set division as a required value for observation #6 in FOIMOD-2976
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-aot committed Aug 2, 2024
1 parent b416d0b commit 15827ac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ const FileUploadForMCFPersonal = ({
},[person, fileType])

React.useEffect(() => {
setAdditionalTagList(searchSections(otherTagList, searchValue, tagValue));
},[searchValue, otherTagList, tagValue])
setAdditionalTagList(searchSections(otherTagList, searchValue, personalTag));
},[searchValue, otherTagList, personalTag])

const handleTrackingIDUpdate = (e) => {
handleTrackingIDChange(e.target.value);
Expand Down Expand Up @@ -707,12 +707,12 @@ const FileUploadForMCFPersonal = ({
value=""
multiple={multipleFiles}
accept={mimeTypes}
disabled={modalFor === "add" && !isPersonSelected}
disabled={modalFor === "add" && (!isPersonSelected || ((isMinistryCoordinator && tagValue == "")))}
/>
</div>
<div className="file-upload-column file-upload-column-3">
{(Object.entries(files).length === 0 && !multipleFiles) || multipleFiles ?
<button className="btn-add-files" type="button" onClick={handleUploadBtnClick} disabled={modalFor === "add" && !isPersonSelected}>
<button className="btn-add-files" type="button" onClick={handleUploadBtnClick} disabled={modalFor === "add" && (!isPersonSelected || ((isMinistryCoordinator && tagValue == "")))}>
Add Files
</button> : null}
</div>
Expand Down

0 comments on commit 15827ac

Please sign in to comment.