Skip to content

Commit f1917bb

Browse files
#RI-4737 - add uppercase
1 parent fd75f61 commit f1917bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

redisinsight/ui/src/components/command-helper/CommandHelperWrapper.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ const CommandHelperWrapper = () => {
3434
} = useSelector(cliSettingsSelector)
3535
const { spec: ALL_REDIS_COMMANDS, commandsArray } = useSelector(appRedisCommandsSelector)
3636
const { instanceId = '' } = useParams<{ instanceId: string }>()
37-
const lastMatchedCommand = (isEnteringCommand && matchedCommand && !checkDeprecatedModuleCommand(matchedCommand))
37+
const lastMatchedCommand = (
38+
isEnteringCommand
39+
&& matchedCommand
40+
&& !checkDeprecatedModuleCommand(matchedCommand.toUpperCase())
41+
)
3842
? matchedCommand
3943
: searchedCommand
44+
4045
const KEYS_OF_COMMANDS = useMemo(() => removeDeprecatedModuleCommands(commandsArray), [commandsArray])
4146
let searchedCommands: string[] = []
4247

0 commit comments

Comments
 (0)