File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
redisinsight/ui/src/slices/browser Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,11 @@ const keysSlice = createSlice({
320
320
321
321
// reset keys for keys slice
322
322
resetKeys : ( state ) => cloneDeep (
323
- { ...initialState , selectedKey : getInitialSelectedKeyState ( state as KeysStore ) }
323
+ {
324
+ ...initialState ,
325
+ viewType : localStorageService ?. get ( BrowserStorageItem . browserViewType ) ?? KeyViewType . Browser ,
326
+ selectedKey : getInitialSelectedKeyState ( state as KeysStore )
327
+ }
324
328
) ,
325
329
326
330
resetKeysData : ( state ) => {
@@ -397,7 +401,6 @@ export let sourceKeysFetch: Nullable<CancelTokenSource> = null
397
401
398
402
export function setInitialStateByType ( type : string ) {
399
403
return ( dispatch : AppDispatch ) => {
400
-
401
404
if ( type === KeyTypes . Hash ) {
402
405
dispatch ( setHashInitialState ( ) )
403
406
}
You can’t perform that action at this time.
0 commit comments