Skip to content

Commit

Permalink
Fix no folder previews on directory search results
Browse files Browse the repository at this point in the history
  • Loading branch information
desertwitch authored Jan 18, 2022
1 parent 0431ce6 commit e09d006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/model/database/sql/GalleryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e09d006

Please sign in to comment.