Skip to content

Commit 1cafcbf

Browse files
committed
fix: reducer clusterInfo should not be used
1 parent 1680e55 commit 1cafcbf

File tree

3 files changed

+1
-51
lines changed

3 files changed

+1
-51
lines changed

src/containers/Header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Header() {
3333
useSelector((state: any) => state);
3434

3535
const clusterName: string = useSelector(
36-
(state: any) => state.cluster.data?.Name || state.clusterInfo.title,
36+
(state: any) => state.cluster.data?.Name || state.clusterInfo?.title,
3737
);
3838

3939
const location = useLocation();

src/store/reducers/clusterInfo.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/store/reducers/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import tablet from './tablet';
2020
import executeQuery from './executeQuery';
2121
import explainQuery from './explainQuery';
2222
import tabletsFilters from './tabletsFilters';
23-
import clusterInfo from './clusterInfo';
2423
import settings from './settings';
2524
import preview from './preview';
2625
import nodesList from './clusterNodes';
@@ -63,7 +62,6 @@ export const rootReducer = {
6362
explainQuery,
6463
tabletsFilters,
6564
heatmap,
66-
clusterInfo,
6765
settings,
6866
preview,
6967
nodesList,

0 commit comments

Comments
 (0)