File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
redisinsight/ui/src/pages/workbench/components/query/Query Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ const Query = (props: Props) => {
105
105
const { theme } = useContext ( ThemeContext )
106
106
const monacoObjects = useRef < Nullable < IEditorMount > > ( null )
107
107
108
+ // TODO: need refactor to avoid this
108
109
const REDIS_COMMANDS = commands . map ( ( command ) => ( { ...addOwnTokenToArgs ( command . name ! , command ) } ) )
109
110
110
111
const { instanceId = '' } = useParams < { instanceId : string } > ( )
@@ -538,11 +539,11 @@ const Query = (props: Props) => {
538
539
if ( position . column === 1 ) {
539
540
helpWidgetRef . current . isOpen = false
540
541
if ( command ) return asSuggestionsRef ( [ ] )
541
- return asSuggestionsRef ( getCommandsSuggestions ( REDIS_COMMANDS , range ) , false )
542
+ return asSuggestionsRef ( getCommandsSuggestions ( commands , range ) , false )
542
543
}
543
544
544
545
if ( ! command ) {
545
- return asSuggestionsRef ( getCommandsSuggestions ( REDIS_COMMANDS , range ) , false )
546
+ return asSuggestionsRef ( getCommandsSuggestions ( commands , range ) , false )
546
547
}
547
548
548
549
const { allArgs, args, cursor } = command
You can’t perform that action at this time.
0 commit comments