mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-09 23:04:02 +02:00
Avoid exception when cloning a page with some modified annotations
Some tests will come later.
This commit is contained in:
parent
9be671dbbd
commit
2b20e012bb
@ -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