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:
parent
e09d006505
commit
55f2748cfd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user