mirror of
https://github.com/Readarr/Readarr
synced 2026-05-08 12:42:51 +02:00
Fixed: Bookshelf jump bar
This commit is contained in:
parent
924e393d1a
commit
a774cf0682
1 changed files with 6 additions and 1 deletions
|
|
@ -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 });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue