Fixed search function when searching inside the "Recent" folder. (#8568)

This commit is contained in:
Andrea Piovanelli
2022-06-17 08:51:10 +02:00
committed by GitHub
parent 520dc06b46
commit 64fad63e02

View File

@@ -203,9 +203,12 @@ $(function () {
var mediaItems = data.mediaItems;
var mediaItemsFolderPath = data.folderPath;
// When searching on "Recent" folder self.displayed() is null and mediaItemsFolderPath is a empty string.
if (!(mediaItemsFolderPath == '' && self.displayed() == null)) {
if (mediaItemsFolderPath !== self.displayed()) {
return;
}
}
self.mediaItemsCount = data.mediaItemsCount;
for (var i = 0; i < mediaItems.length; i++) {