Skip to content

Commit

Permalink
PATCH: fix no extension file in GED
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtil committed Dec 6, 2021
1 parent 6b5ede5 commit a9cc9bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BIMDataSmartComponents/BIMDataFileManager/utils/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ async function downloadFiles(files, apiInfos = {}) {
}

function getFileExtension(file) {
const extension = file.name.match(/\.([0-9a-z]+$)/)[1];
const match = file.name.match(/\.([0-9a-z]+$)/);
const extension = match && match[1];
if (extension && extension.toLowerCase() === "ifczip") {
return "ifc";
} else {
Expand Down

0 comments on commit a9cc9bd

Please sign in to comment.