1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Revert "Fix no folder previews on directory search results"

This reverts commit e09d006505cc4b0a5bf8d21af33d49a75ee80abb.
This commit is contained in:
Veronika 2022-01-18 14:51:07 +01:00
parent e09d006505
commit 55f2748cfd

View File

@ -222,7 +222,7 @@ export class GalleryManager implements IGalleryManager, ISQLGalleryManager {
*/
public async fillPreviewForSubDir(connection: Connection, dir: SubDirectoryDTO): Promise<void> {
if (!dir.preview || !dir.validPreview) {
if (!dir.validPreview) {
dir.preview = await ObjectManagers.getInstance().PreviewManager.setAndGetPreviewForDirectory(dir);
}