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); }