Skip to content

Commit fbebaea

Browse files
committed
fix
1 parent 83cd0bf commit fbebaea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const navigateHistory = (direction: number) => {
228228
historyIndex.value = Math.max(0, Math.min(commandHistory.value.length, historyIndex.value + direction))
229229
230230
if (historyIndex.value < commandHistory.value.length) {
231-
currentCommand.value = commandHistory.value[historyIndex.value]
231+
currentCommand.value = commandHistory.value[historyIndex.value]!
232232
} else {
233233
currentCommand.value = ''
234234
}

src/components/TerminalInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const navigateHistory = (direction: number) => {
215215
historyIndex.value = Math.max(0, Math.min(commandHistory.value.length, historyIndex.value + direction))
216216
217217
if (historyIndex.value < commandHistory.value.length) {
218-
currentCommand.value = commandHistory.value[historyIndex.value]
218+
currentCommand.value = commandHistory.value[historyIndex.value]!
219219
} else {
220220
currentCommand.value = ''
221221
}

0 commit comments

Comments
 (0)