Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
7c07e42b55
commit
5c180fd6ae
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue