diff --git a/frontend/src/Bookshelf/Bookshelf.js b/frontend/src/Bookshelf/Bookshelf.js index f8df490fc..c1db2b96f 100644 --- a/frontend/src/Bookshelf/Bookshelf.js +++ b/frontend/src/Bookshelf/Bookshelf.js @@ -289,7 +289,12 @@ class Bookshelf extends Component { } onJumpBarItemPress = (jumpToCharacter) => { - const scrollIndex = getIndexOfFirstCharacter(this.props.items, jumpToCharacter); + const { + items, + sortKey + } = this.props; + + const scrollIndex = getIndexOfFirstCharacter(items, sortKey, jumpToCharacter); if (scrollIndex != null) { this.setState({ scrollIndex });