From 55f2748cfd54e69507911e4609736a84f7d9ffd2 Mon Sep 17 00:00:00 2001 From: Veronika <24509509+desertwitch@users.noreply.github.com> Date: Tue, 18 Jan 2022 14:51:07 +0100 Subject: [PATCH] Revert "Fix no folder previews on directory search results" This reverts commit e09d006505cc4b0a5bf8d21af33d49a75ee80abb. --- src/backend/model/database/sql/GalleryManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/model/database/sql/GalleryManager.ts b/src/backend/model/database/sql/GalleryManager.ts index 10b555fd..70a46992 100644 --- a/src/backend/model/database/sql/GalleryManager.ts +++ b/src/backend/model/database/sql/GalleryManager.ts @@ -222,7 +222,7 @@ export class GalleryManager implements IGalleryManager, ISQLGalleryManager { */ public async fillPreviewForSubDir(connection: Connection, dir: SubDirectoryDTO): Promise { - if (!dir.preview || !dir.validPreview) { + if (!dir.validPreview) { dir.preview = await ObjectManagers.getInstance().PreviewManager.setAndGetPreviewForDirectory(dir); }