Skip to content

Commit

Permalink
fix: change left menu selection only on connect
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanurazvan committed Feb 22, 2023
1 parent 55ba644 commit 33c9e49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/redux/thunks/cluster/startClusterConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export const startClusterConnection = createAsyncThunk<
thunkAPI.dispatch(reloadClusterResources({context, namespace}));
} else {
thunkAPI.dispatch(loadClusterResources({context, namespace}));
thunkAPI.dispatch(setLeftMenuSelection('dashboard'));
}
thunkAPI.dispatch(setLeftMenuSelection('dashboard'));

return;
}

Expand All @@ -49,8 +50,9 @@ export const startClusterConnection = createAsyncThunk<
thunkAPI.dispatch(reloadClusterResources({context, namespace, port: clusterProxyPort}));
} else {
thunkAPI.dispatch(loadClusterResources({context, namespace, port: clusterProxyPort}));
thunkAPI.dispatch(setLeftMenuSelection('dashboard'));
}
thunkAPI.dispatch(setLeftMenuSelection('dashboard'));

return;
}

Expand Down

0 comments on commit 33c9e49

Please sign in to comment.