Skip to content

Commit fc1d4ae

Browse files
committed
* #RI-2660 - ">" symbol displayed in wrong way in CLI
* #RI-2698 - Autoselect for keys works incorrectly when using filter by key type
1 parent 5ad9c9b commit fc1d4ae

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

redisinsight/ui/src/components/cli/components/cli-body/CliBodyWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const CliBodyWrapper = () => {
7171
const handleSubmit = () => {
7272
const [commandLine, countRepeat] = getCommandRepeat(decode(command).trim())
7373
const unsupportedCommand = checkUnsupportedCommand(unsupportedCommands, commandLine)
74-
dispatch(concatToOutput(cliCommandOutput(command, currentDbIndex)))
74+
dispatch(concatToOutput(cliCommandOutput(decode(command), currentDbIndex)))
7575

7676
if (!isRepeatCountCorrect(countRepeat)) {
7777
dispatch(processUnrepeatableNumber(commandLine, resetCommand))

redisinsight/ui/src/pages/browser/components/key-tree/KeyTree.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,14 @@ const KeyTree = (props: Props) => {
6969
}, [keysState.keys])
7070

7171
useEffect(() => {
72-
// select default leaf "Keys" after each change delimiter
72+
// select default leaf "Keys" after each change delimiter, filter or search
7373
setItems([])
7474
setTimeout(() => {
7575
setStatusSelected({})
7676
setSelectDefaultLeaf(true)
7777
setItems(keysState.keys)
7878
}, 0)
79-
}, [delimiter])
80-
81-
useEffect(() => {
82-
// select default leaf "Keys" after each search or filter
83-
setSelectDefaultLeaf(true)
84-
}, [filter, search])
79+
}, [delimiter, filter, search])
8580

8681
const updateKeysList = (items:any = {}) => {
8782
const newState:IKeyListPropTypes = {

0 commit comments

Comments
 (0)