Frontend: Use photo.mainFile() for viewer #309 #370

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-02 12:05:08 +02:00
parent 7c07e42b55
commit 5c180fd6ae

View file

@ -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) {