mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-09 14:54:04 +02:00
Merge pull request #20992 from calixteman/organize_avoid_exception
Avoid exception when cloning a page with some modified annotations
This commit is contained in:
commit
27e619f00d
@ -1979,7 +1979,7 @@ class PDFEditor {
|
||||
}
|
||||
|
||||
const newAnnotations =
|
||||
this.#newAnnotationsParams?.newAnnotationsByPage.get(pageIndex);
|
||||
this.#newAnnotationsParams?.newAnnotationsByPage?.get(pageIndex);
|
||||
if (newAnnotations) {
|
||||
const { handler, task, imagesPromises } = this.#newAnnotationsParams;
|
||||
const changes = new RefSetCache();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user