Bladeren bron

:art: https://github.com/siyuan-note/siyuan/issues/13282

Vanessa 6 maanden geleden
bovenliggende
commit
24250e4eb3
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      app/src/asset/index.ts

+ 3 - 1
app/src/asset/index.ts

@@ -73,7 +73,9 @@ export class Asset extends Model {
         /// #if !MOBILE
         /// #if !MOBILE
         if (typeof pdfId === "string") {
         if (typeof pdfId === "string") {
             this.getPdfId(() => {
             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;
             return;
         }
         }