Skip to content

Commit 5dca61a

Browse files
committed
.
1 parent a6ae94d commit 5dca61a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/compass-global-writes/src/store/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export function activateGlobalWritesPlugin(
6666
namespace: options.namespace,
6767
status: ShardingStatuses.NOT_READY,
6868
shardZones: [],
69+
isPluginTitleVisible: false,
6970
},
7071
applyMiddleware(
7172
thunk.withExtraArgument({

packages/compass-global-writes/src/store/reducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ const initialState: RootState = {
253253
namespace: '',
254254
status: ShardingStatuses.NOT_READY,
255255
shardZones: [],
256-
isPluginTitleVisible: true,
256+
isPluginTitleVisible: false,
257257
};
258258

259259
const reducer: Reducer<RootState, Action> = (state = initialState, action) => {
@@ -798,7 +798,7 @@ export const setPluginTitleVisibility = (
798798
status === ShardingStatuses.SHARDING &&
799799
!pollingTimeout
800800
) {
801-
dispatch(pollForShardKey());
801+
void dispatch(fetchNamespaceShardKey());
802802
}
803803
};
804804
};

0 commit comments

Comments
 (0)