Skip to content

Commit

Permalink
feat(translations): update TranslationBox when moving segments.
Browse files Browse the repository at this point in the history
  • Loading branch information
YishaiGlasner committed Nov 23, 2023
1 parent 4e5c804 commit a4bfd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/TranslationsBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TranslationsBox extends Component {
}
}
componentDidUpdate(prevProps, prevState) {
if (!this.isSheet() && prevProps.sectionRef !== this.props.sectionRef) {
if (!this.isSheet() && prevProps.srefs[0] !== this.props.srefs[0]) {
Sefaria.getAllTranslationsWithText(this.props.srefs[0]).then(this.onVersionsLoad);
}
}
Expand Down

0 comments on commit a4bfd2f

Please sign in to comment.