Merge pull request #20992 from calixteman/organize_avoid_exception

Avoid exception when cloning a page with some modified annotations
This commit is contained in:
calixteman 2026-03-26 22:15:06 +01:00 committed by GitHub
commit 27e619f00d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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