Files opened by url/NGB server fix: error loading data (wrong file path)
@@ -61,15 +61,6 @@ export default class ngbOpenFileController {
});
}
- fileName(path) {
- if (!path || !path.length) {
- return null;
- }
- let list = path.split('/');
- list = list[list.length - 1].split('\\');
- return list[list.length - 1];
- }
-
loadTracks(selectedFiles) {
const mapFn = (selectedFile) => {
return {
@@ -80,7 +71,7 @@ export default class ngbOpenFileController {
bioDataItemId: selectedFile.path,
referenceId: selectedFile.reference.id,
reference: selectedFile.reference,
- name: this.fileName(selectedFile.path),
+ name: selectedFile.path,
indexPath: selectedFile.index,
projectId: selectedFile.reference.name
};
