Skip to content

Commit

Permalink
fix(TextRange): use sectionRef for key only if the ref is cached, oth…
Browse files Browse the repository at this point in the history
…erwise, use sref.
  • Loading branch information
YishaiGlasner committed Jan 14, 2025
1 parent 8aeec0e commit b4a37c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/TextColumn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class TextColumn extends Component {
unsetTextHighlight={this.props.unsetTextHighlight}
navigatePanel={this.props.navigatePanel}
translationLanguagePreference={this.props.translationLanguagePreference}
key={oref.sectionRef} />);
key={sref || oref.sectionRef} />);
});

let pre, post, bookTitle;
Expand Down

0 comments on commit b4a37c9

Please sign in to comment.