From e09d006505cc4b0a5bf8d21af33d49a75ee80abb Mon Sep 17 00:00:00 2001 From: Veronika <24509509+desertwitch@users.noreply.github.com> Date: Tue, 18 Jan 2022 13:41:35 +0100 Subject: [PATCH] Fix no folder previews on directory search results --- 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 70a46992..10b555fd 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.validPreview) { + if (!dir.preview || !dir.validPreview) { dir.preview = await ObjectManagers.getInstance().PreviewManager.setAndGetPreviewForDirectory(dir); }