fix null case
This commit is contained in:
parent
b9fce15042
commit
c1a185e852
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export function jumpToCharacter(view, character, direction = 1) {
|
||||||
jumpPos = characterPositions.reverse().find((x) => x < pos + 1) ?? characterPositions.at(0);
|
jumpPos = characterPositions.reverse().find((x) => x < pos + 1) ?? characterPositions.at(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!jumpPos) {
|
if (jumpPos == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue