From b4a37c9da6113446fe9c3001c6e0ec9c16205e70 Mon Sep 17 00:00:00 2001 From: YishaiGlasner Date: Tue, 14 Jan 2025 17:43:14 +0200 Subject: [PATCH] fix(TextRange): use sectionRef for key only if the ref is cached, otherwise, use sref. --- static/js/TextColumn.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/TextColumn.jsx b/static/js/TextColumn.jsx index f9090a4d71..ed23d57f45 100644 --- a/static/js/TextColumn.jsx +++ b/static/js/TextColumn.jsx @@ -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;