Skip to content

Commit

Permalink
Merge pull request #103 from Fliplet/master
Browse files Browse the repository at this point in the history
release 06022024
  • Loading branch information
simonchapman1986 authored Feb 6, 2024
2 parents ce3a410 + 1902e52 commit 2a3a732
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ function getFolderContentsById(id, type, isSearchNav) {

mediaFiles.forEach(parseThumbnail);

mediaFolders.forEach(addFolder);
mediaFiles.forEach(addFile);
mediaFolders.forEach((folder) => addFolder(folder));
mediaFiles.forEach(file =>addFile(file));

renderList();
}
Expand Down Expand Up @@ -1338,9 +1338,9 @@ function renderSearchResult(result, searchType) {
.map(function(item) {
item.relativePath = calculatePath(item);

if (item.parentId) {
if (item.parentId || item.mediaFolderId) {
item.parentItemType = 'folder';
item.parentItemId = item.parentId;
item.parentItemId = item.parentId || item.mediaFolderId;
} else if (item.appId) {
item.parentItemType = 'app';
item.parentItemId = item.appId;
Expand Down

0 comments on commit 2a3a732

Please sign in to comment.