Skip to content
Snippets Groups Projects
Commit b5becd22 authored by yvesn's avatar yvesn
Browse files

SSDM-5068 : ELN config on GUI - fixed dataSetTypeForFileNameMap evaluation in profile

SVN: 38244
parent 8795dc99
No related branches found
No related tags found
No related merge requests found
...@@ -451,7 +451,7 @@ $.extend(DefaultProfile.prototype, { ...@@ -451,7 +451,7 @@ $.extend(DefaultProfile.prototype, {
this.getDataSetTypeForFileName = function(allDatasetFiles, fileName) { this.getDataSetTypeForFileName = function(allDatasetFiles, fileName) {
for (var dataSetTypeForFileName of this.dataSetTypeForFileNameMap) { for (var dataSetTypeForFileName of this.dataSetTypeForFileNameMap) {
if (fileName.endsWith(dataSetTypeForFileName.filenameExtension)) { if (fileName && fileName.endsWith(dataSetTypeForFileName.fileNameExtension)) {
return dataSetTypeForFileName.dataSetType; return dataSetTypeForFileName.dataSetType;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment