File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
components/cli/components/cli-body
pages/browser/components/key-tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ const CliBodyWrapper = () => {
71
71
const handleSubmit = ( ) => {
72
72
const [ commandLine , countRepeat ] = getCommandRepeat ( decode ( command ) . trim ( ) )
73
73
const unsupportedCommand = checkUnsupportedCommand ( unsupportedCommands , commandLine )
74
- dispatch ( concatToOutput ( cliCommandOutput ( command , currentDbIndex ) ) )
74
+ dispatch ( concatToOutput ( cliCommandOutput ( decode ( command ) , currentDbIndex ) ) )
75
75
76
76
if ( ! isRepeatCountCorrect ( countRepeat ) ) {
77
77
dispatch ( processUnrepeatableNumber ( commandLine , resetCommand ) )
Original file line number Diff line number Diff line change @@ -69,19 +69,14 @@ const KeyTree = (props: Props) => {
69
69
} , [ keysState . keys ] )
70
70
71
71
useEffect ( ( ) => {
72
- // select default leaf "Keys" after each change delimiter
72
+ // select default leaf "Keys" after each change delimiter, filter or search
73
73
setItems ( [ ] )
74
74
setTimeout ( ( ) => {
75
75
setStatusSelected ( { } )
76
76
setSelectDefaultLeaf ( true )
77
77
setItems ( keysState . keys )
78
78
} , 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 ] )
85
80
86
81
const updateKeysList = ( items :any = { } ) => {
87
82
const newState :IKeyListPropTypes = {
You can’t perform that action at this time.
0 commit comments