From 24250e4eb30f6fecbadfc4e105d142f66a293cc4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 26 Dec 2024 09:49:09 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13282 --- app/src/asset/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }