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

Fix no folder previews on directory search results

This commit is contained in:
Veronika 2022-01-18 13:41:35 +01:00 committed by GitHub
parent 0431ce67e2
commit e09d006505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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