Skip to content

Commit

Permalink
#1178 | fix: upload button work for multiselect file
Browse files Browse the repository at this point in the history
  • Loading branch information
vedfordev committed Dec 6, 2024
1 parent 9ca5b72 commit c4d3b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dataEntryApp/components/MediaUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,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() && !isFileDataType;
const isMultiSelect = formElement.isMultiSelect();

useEffect(() => {
addObsResultsToPreview(localObsValue, setPreview);
Expand Down
2 changes: 1 addition & 1 deletion src/dataEntryApp/components/Observations.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { subjectService } from "../services/SubjectService";
import { useTranslation } from "react-i18next";
import ErrorIcon from "@material-ui/icons/Error";
import PropTypes from "prop-types";
import { find, get, includes, isEmpty, isNil, lowerCase, map } from "lodash";
import { find, includes, isEmpty, isNil, lowerCase, map } from "lodash";
import clsx from "clsx";
import Colors from "dataEntryApp/Colors";
import { Link } from "react-router-dom";
Expand Down

0 comments on commit c4d3b39

Please sign in to comment.