Skip to content

Commit

Permalink
#1133 | Temp change: Purposefully force multi-file upload to also beh…
Browse files Browse the repository at this point in the history
…ave as single file upload inline with earlier behaviour
  • Loading branch information
himeshr committed Apr 3, 2024
1 parent 9a14090 commit 0082bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataEntryApp/components/MediaUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const MediaUploader = ({ label, obsValue, mediaType, update, formElement
const [openImage, setOpenImage] = useState();
const isFileDataType = formElement.getType() === Concept.dataType.File;
const supportedMIMEType = isFileDataType ? getFileMimeType(formElement) : `${mediaType}/*`;
const isMultiSelect = formElement.isMultiSelect();
const isMultiSelect = formElement.isMultiSelect() && !isFileDataType;

useEffect(() => {
// Push consolidated changes to ObservationHolder, doing it directly without state messes up the multi-select flows
Expand Down

0 comments on commit 0082bae

Please sign in to comment.