Skip to content

Commit

Permalink
Fix crash when changing annotation page labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Jun 10, 2024
1 parent 3586434 commit 71b6226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/components/modal-popup/label-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ function LabelPopup({ params, onUpdateAnnotations, onClose }) {
// TODO: Don't reset page labels if they can't be reliably extracted from text
onClose();
let annotations = params.allAnnotations.filter(x => !x.readOnly);
let { pageIndex } = annotation.position;
for (let annotation of annotations) {
let { pageIndex } = annotation.position;
annotationsToUpdate.push({
id: annotation.id,
pageLabel: params.pageLabels[pageIndex] || (pageIndex + 1).toString()
Expand Down

0 comments on commit 71b6226

Please sign in to comment.