Skip to content

Commit

Permalink
Merge pull request smaranjitghose#1038 from N-Shar-ma/pdf-to-pdf-only
Browse files Browse the repository at this point in the history
Bug Fix: PDF files can only be merged, other format options should not show in Output dropdown
  • Loading branch information
smaranjitghose authored Jun 1, 2021
2 parents 255f210 + 6f8884e commit 381ef6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/MediaManip/DragDrop/DragDrop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function DragDrop(props) {
outputOptionsTemp.splice(index, 1);
setOutputOptions(outputOptionsTemp);
}

if(fileType === "pdf") setOutputOptions(["pdf"]);
return Object.assign(file, {
preview: URL.createObjectURL(file),
});
Expand Down

0 comments on commit 381ef6c

Please sign in to comment.