File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
redisinsight/ui/src/pages/home/components/DatabasesListComponent Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ import {
24
24
ConnectionType ,
25
25
Instance ,
26
26
} from 'uiSrc/slices/interfaces'
27
- import { resetKeys } from 'uiSrc/slices/browser/keys'
27
+ import { resetPatternKeysData } from 'uiSrc/slices/browser/keys'
28
+ import { resetRedisearchKeysData } from 'uiSrc/slices/browser/redisearch'
28
29
import { PageNames , Pages , Theme } from 'uiSrc/constants'
29
30
import { sendEventTelemetry , TelemetryEvent , getRedisModulesSummary } from 'uiSrc/telemetry'
30
31
import { ThemeContext } from 'uiSrc/contexts/themeContext'
@@ -107,7 +108,8 @@ const DatabasesListWrapper = ({
107
108
108
109
const connectToInstance = ( id = '' ) => {
109
110
if ( contextInstanceId && contextInstanceId !== id ) {
110
- dispatch ( resetKeys ( ) )
111
+ dispatch ( resetRedisearchKeysData ( ) )
112
+ dispatch ( resetPatternKeysData ( ) )
111
113
dispatch ( resetCliSettingsAction ( ) )
112
114
dispatch ( resetCliHelperSettings ( ) )
113
115
dispatch ( setAppContextInitialState ( ) )
You can’t perform that action at this time.
0 commit comments