Skip to content

Commit

Permalink
fix(ID-3973): fixed possibility to navigate to search result path (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwfliplet authored Jan 31, 2024
1 parent ce3a410 commit 1902e52
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 1902e52

Please sign in to comment.