Skip to content

Commit 71b6226

Browse files
committed
Fix crash when changing annotation page labels
1 parent 3586434 commit 71b6226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/components/modal-popup/label-popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ function LabelPopup({ params, onUpdateAnnotations, onClose }) {
111111
// TODO: Don't reset page labels if they can't be reliably extracted from text
112112
onClose();
113113
let annotations = params.allAnnotations.filter(x => !x.readOnly);
114-
let { pageIndex } = annotation.position;
115114
for (let annotation of annotations) {
115+
let { pageIndex } = annotation.position;
116116
annotationsToUpdate.push({
117117
id: annotation.id,
118118
pageLabel: params.pageLabels[pageIndex] || (pageIndex + 1).toString()

0 commit comments

Comments
 (0)