Skip to content

Commit 29d8b11

Browse files
committed
fix(plugins/plugin-client-common): TabCompletion can throw a console error
Fixes #4785
1 parent b035bdc commit 29d8b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/plugin-client-common/src/components/Views/Terminal/Block/TabCompletion.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export abstract class TabCompletionState {
151151

152152
this.input.setState({
153153
tabCompletion:
154-
completions.length === 0
154+
!completions || completions.length === 0
155155
? undefined
156156
: completions.length === 1
157157
? new TabCompletionStateWithSingleSuggestion(this.input, completions[0])

0 commit comments

Comments
 (0)