diff options
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index b8b9f63a9..1dc194c42 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -656,11 +656,9 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { ); else { if (!PDFBox.pdfpromise.get(href)) PDFBox.pdfpromise.set(href, Pdfjs.getDocument(href).promise); - PDFBox.pdfpromise.get(href)?.then( - action((pdf: any) => { - PDFBox.pdfcache.set(href, (this._pdf = pdf)); - }) - ); + PDFBox.pdfpromise.get(href)?.then((pdf: any) => { + PDFBox.pdfcache.set(href, (this._pdf = pdf)); + }); } } return pdfView ?? this.renderTitleBox; |