Skip to content

Commit

Permalink
🐛 display all folder when package has several versions (#98)
Browse files Browse the repository at this point in the history
Co-authored-by: Mbaye THIAM <[email protected]>
  • Loading branch information
mbthiam88 and Mbaye THIAM authored Apr 18, 2024
1 parent f10582b commit c1e42d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions html/a7_browse_directory.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
}, {});

files = Object.keys(directories).map(function (data) {
if (directories[data].length > 1) {
return {
name: data,
type: 'directory',
isPackageFolder: true
}
}
return {
...(directories[data][0] || {}),
isPackageFolder: directories[data].isPackageFolder
Expand Down

0 comments on commit c1e42d1

Please sign in to comment.