Avoid exception when cloning a page with some modified annotations

Some tests will come later.
This commit is contained in:
Calixte Denizet 2026-03-26 20:53:02 +01:00
parent 9be671dbbd
commit 2b20e012bb
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F

View File

@ -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();