Skip to content

Commit

Permalink
fix equals instead of === in orig file format check
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jun 1, 2023
1 parent e3e23c1 commit 2679f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/fileupload2.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async function retrieveDatasetInfo() {
let df = entry.dataFile;
let convertedFile = false;
if (("originalFileFormat" in df)
&& (!df.contentType.equals(df.originalFileFormat))) {
&& (!df.contentType === df.originalFileFormat)) {
console.log("The file named " + df.getString("filename")
+ " on the server was created by Dataverse's ingest process from an original uploaded file");
convertedFile = true;
Expand Down

0 comments on commit 2679f2c

Please sign in to comment.