mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-16 02:04:03 +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 =
|
const newAnnotations =
|
||||||
this.#newAnnotationsParams?.newAnnotationsByPage.get(pageIndex);
|
this.#newAnnotationsParams?.newAnnotationsByPage?.get(pageIndex);
|
||||||
if (newAnnotations) {
|
if (newAnnotations) {
|
||||||
const { handler, task, imagesPromises } = this.#newAnnotationsParams;
|
const { handler, task, imagesPromises } = this.#newAnnotationsParams;
|
||||||
const changes = new RefSetCache();
|
const changes = new RefSetCache();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user