diff --git a/src/core/editor/pdf_editor.js b/src/core/editor/pdf_editor.js index 3b2cc7929..615010c9a 100644 --- a/src/core/editor/pdf_editor.js +++ b/src/core/editor/pdf_editor.js @@ -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();