Skip to content

Commit 27e619f

Browse files
authored
Merge pull request #20992 from calixteman/organize_avoid_exception
Avoid exception when cloning a page with some modified annotations
2 parents 4845186 + 2b20e01 commit 27e619f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/editor/pdf_editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ class PDFEditor {
19791979
}
19801980

19811981
const newAnnotations =
1982-
this.#newAnnotationsParams?.newAnnotationsByPage.get(pageIndex);
1982+
this.#newAnnotationsParams?.newAnnotationsByPage?.get(pageIndex);
19831983
if (newAnnotations) {
19841984
const { handler, task, imagesPromises } = this.#newAnnotationsParams;
19851985
const changes = new RefSetCache();

0 commit comments

Comments
 (0)