diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts index 506623ef3..d0cc99e5e 100644 --- a/app/src/asset/index.ts +++ b/app/src/asset/index.ts @@ -73,7 +73,9 @@ export class Asset extends Model { /// #if !MOBILE if (typeof pdfId === "string") { this.getPdfId(() => { - onPageNumberChanged({value: this.pdfPage, pdfInstance: this.pdfObject, id: this.pdfId}); + if (this.pdfPage) { + onPageNumberChanged({value: this.pdfPage, pdfInstance: this.pdfObject, id: this.pdfId}); + } }); return; }