Skip to content

Commit

Permalink
fix: fixed display of files in subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Dec 16, 2021
1 parent b3dce39 commit ee62bbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions libs/simulation-runs/service/src/lib/view/view.service.ts
Expand Up @@ -681,14 +681,6 @@ export class ViewService {
});

return Object.values(root).sort((a: Path, b: Path): number => {
if (a._type == 'Directory' && b._type === 'File') {
return -1;
}

if (a._type == 'File' && b._type === 'Directory') {
return 1;
}

return a.location.localeCompare(b.location, undefined, {
numeric: true,
});
Expand Down
3 changes: 1 addition & 2 deletions libs/simulation-runs/ui/src/lib/files/files.component.html
Expand Up @@ -12,8 +12,7 @@
>
<div class="icon-container">
<biosimulations-icon icon="project"></biosimulations-icon>
</div>
{{ path.title }}
</div>{{ path.title }}
</div>
<div class="cell format">Directory</div>
<div class="cell main"></div>
Expand Down

0 comments on commit ee62bbe

Please sign in to comment.