mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-12 22:15:27 -04:00
fix null case
This commit is contained in:
@@ -20,7 +20,7 @@ export function jumpToCharacter(view, character, direction = 1) {
|
||||
jumpPos = characterPositions.reverse().find((x) => x < pos + 1) ?? characterPositions.at(0);
|
||||
}
|
||||
|
||||
if (!jumpPos) {
|
||||
if (jumpPos == null) {
|
||||
return false;
|
||||
}
|
||||
dispatch({
|
||||
|
||||
Reference in New Issue
Block a user