Skip to content

Commit 605be06

Browse files
MiodecCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 105137a commit 605be06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/ts/input/helpers/word-navigation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ export function goToPreviousWord(
9999

100100
TestState.decreaseActiveWordIndex();
101101

102-
Funbox.toggleScript(TestWords.words.getText(TestState.activeWordIndex) ?? "");
102+
const word = TestWords.words.getText(TestState.activeWordIndex);
103+
if (word !== undefined) Funbox.toggleScript(word);
103104

104105
const nospaceEnabled = isFunboxActiveWithProperty("nospace");
105106

0 commit comments

Comments
 (0)