Skip to content

Commit 2b20e01

Browse files
committed
Avoid exception when cloning a page with some modified annotations
Some tests will come later.
1 parent 9be671d commit 2b20e01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)