From 5c180fd6ae20161556fd2f87eddf0eba73a62ccb Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 2 Jul 2020 12:05:08 +0200 Subject: [PATCH] Frontend: Use photo.mainFile() for viewer #309 #370 Signed-off-by: Michael Mayer --- frontend/src/model/thumb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/model/thumb.js b/frontend/src/model/thumb.js index 840795cda..8b142071a 100644 --- a/frontend/src/model/thumb.js +++ b/frontend/src/model/thumb.js @@ -96,7 +96,7 @@ export class Thumb extends Model { static fromPhoto(photo) { if (photo.Files) { - return this.fromFile(photo, photo.Files.find(f => !!f.Primary)); + return this.fromFile(photo, photo.mainFile()); } if (!photo || !photo.Hash) {