Skip to content

Commit

Permalink
#1133 | Fix build break
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Apr 4, 2024
1 parent 1909530 commit b9e748f
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 @@ -162,7 +162,7 @@ export const MediaUploader = ({ label, obsValue, mediaType, update, formElement

const onDelete = fileName => {
if (isMultiSelect && isArrayLikeObject(localObsValue)) {
setLocalObsValue(localObsValue.filter(item => item != fileName));
setLocalObsValue(localObsValue.filter(item => item !== fileName));
} else {
if (localObsValue === fileName) setLocalObsValue(); //Remove previous value
}
Expand Down

0 comments on commit b9e748f

Please sign in to comment.