Skip to content

Commit 610aa24

Browse files
committed
fix(ui): clear connectivity error when switching databases
When switching to a different database, the connectivity error from the previous database should be cleared immediately rather than waiting for the first auto-refresh cycle to clear it. References: #RI-7761
1 parent 8809c9b commit 610aa24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

redisinsight/ui/src/slices/app/context.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import {
4646
setPipelineJobs,
4747
} from 'uiSrc/slices/rdi/pipeline'
4848
import { resetOutput } from 'uiSrc/slices/cli/cli-output'
49+
import { setConnectivityError } from 'uiSrc/slices/app/connectivity'
4950
import { SearchMode } from '../interfaces/keys'
5051
import {
5152
AppWorkspace,
@@ -448,6 +449,7 @@ export function resetDatabaseContext() {
448449
dispatch(setRedisearchInitialState())
449450
dispatch(setInitialRecommendationsState())
450451
dispatch(clearExpertChatHistory())
452+
dispatch(setConnectivityError(null))
451453
setTimeout(() => {
452454
dispatch(resetOutput())
453455
}, 0)

0 commit comments

Comments
 (0)