From 2679f2c693afa1de0bde45b70b3a8086949214dc Mon Sep 17 00:00:00 2001 From: Jim Myers Date: Thu, 1 Jun 2023 14:12:17 -0400 Subject: [PATCH] fix equals instead of === in orig file format check --- src/js/fileupload2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/fileupload2.js b/src/js/fileupload2.js index 3c83d8b..f972a7a 100644 --- a/src/js/fileupload2.js +++ b/src/js/fileupload2.js @@ -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;