mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fixed: Bookshelf jump bar
This commit is contained in:
@@ -289,7 +289,12 @@ class Bookshelf extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onJumpBarItemPress = (jumpToCharacter) => {
|
onJumpBarItemPress = (jumpToCharacter) => {
|
||||||
const scrollIndex = getIndexOfFirstCharacter(this.props.items, jumpToCharacter);
|
const {
|
||||||
|
items,
|
||||||
|
sortKey
|
||||||
|
} = this.props;
|
||||||
|
|
||||||
|
const scrollIndex = getIndexOfFirstCharacter(items, sortKey, jumpToCharacter);
|
||||||
|
|
||||||
if (scrollIndex != null) {
|
if (scrollIndex != null) {
|
||||||
this.setState({ scrollIndex });
|
this.setState({ scrollIndex });
|
||||||
|
|||||||
Reference in New Issue
Block a user