Skip to content

Commit 76e3a19

Browse files
Merge pull request #3543 from RedisInsight/fe/bugfix/RI-5870-5871_rdi_context
#RI-5870, 5871 - fix context, unsaved changes
2 parents 6bfc99a + 1849962 commit 76e3a19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redisinsight/ui/src/pages/rdi/instance/InstancePage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ const RdiInstancePage = ({ routes = [] }: Props) => {
6666
}, [rdiInstanceId])
6767

6868
useEffect(() => {
69+
dispatch(fetchConnectedInstanceAction(rdiInstanceId))
70+
dispatch(getPipelineStatusAction(rdiInstanceId))
6971
// redirect only if there is no exact path
7072
if (pathname === Pages.rdiPipeline(rdiInstanceId)) {
7173
if (lastPage === PageNames.rdiStatistics && contextRdiInstanceId === rdiInstanceId) {
@@ -74,9 +76,6 @@ const RdiInstancePage = ({ routes = [] }: Props) => {
7476
}
7577
history.push(Pages.rdiPipelineManagement(rdiInstanceId))
7678
}
77-
78-
dispatch(fetchConnectedInstanceAction(rdiInstanceId))
79-
dispatch(getPipelineStatusAction(rdiInstanceId))
8079
}, [])
8180

8281
useEffect(() => {

redisinsight/ui/src/pages/rdi/pipeline-management/components/source-pipeline-dialog/SourcePipelineModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const SourcePipelineDialog = () => {
6363

6464
const handleCloseDialog = () => {
6565
dispatch(setPipeline(EMPTY_PIPELINE))
66+
dispatch(setChangedFile({ name: 'config', status: FileChangeType.Added }))
6667
dispatch(setPipelineDialogState(false))
6768
}
6869

0 commit comments

Comments
 (0)